Interface IMetadataQuerier
-
- All Known Implementing Classes:
MetadataQuerierByFileImpl
public interface IMetadataQuerier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()clear caches (if used) to release memory.java.util.List<TimeRange>convertSpace2TimePartition(java.util.List<Path> paths, long spacePartitionStartPos, long spacePartitionEndPos)Convert the space partition constraint to the time partition constraint.java.util.List<IChunkMetadata>getChunkMetaDataList(Path path)java.util.Map<Path,java.util.List<IChunkMetadata>>getChunkMetaDataMap(java.util.List<Path> paths)TSDataTypegetDataType(Path path)TsFileMetadatagetWholeFileMetadata()voidloadChunkMetaDatas(java.util.List<Path> paths)this will load all chunk metadata of given paths into cache.
-
-
-
Method Detail
-
getChunkMetaDataList
java.util.List<IChunkMetadata> getChunkMetaDataList(Path path) throws java.io.IOException
- Throws:
java.io.IOException
-
getChunkMetaDataMap
java.util.Map<Path,java.util.List<IChunkMetadata>> getChunkMetaDataMap(java.util.List<Path> paths) throws java.io.IOException
- Throws:
java.io.IOException
-
getWholeFileMetadata
TsFileMetadata getWholeFileMetadata()
-
loadChunkMetaDatas
void loadChunkMetaDatas(java.util.List<Path> paths) throws java.io.IOException
this will load all chunk metadata of given paths into cache.call this method before calling getChunkMetaDataList() will accelerate the reading of chunk metadata, which will only read TsMetaData once
- Throws:
java.io.IOException
-
getDataType
TSDataType getDataType(Path path) throws NoMeasurementException, java.io.IOException
- Returns:
- the corresponding data type.
- Throws:
NoMeasurementException- if the measurement not exists.java.io.IOException
-
convertSpace2TimePartition
java.util.List<TimeRange> convertSpace2TimePartition(java.util.List<Path> paths, long spacePartitionStartPos, long spacePartitionEndPos) throws java.io.IOException
Convert the space partition constraint to the time partition constraint.- Parameters:
paths- selected paths in a query expressionspacePartitionStartPos- the start position of the space partitionspacePartitionEndPos- the end position of the space partition- Returns:
- the converted time partition constraint
- Throws:
java.io.IOException
-
clear
void clear()
clear caches (if used) to release memory.
-
-