public class MetadataQuerierByFileImpl extends Object implements IMetadataQuerier
| Constructor and Description |
|---|
MetadataQuerierByFileImpl(TsFileSequenceReader tsFileReader)
Constructor of MetadataQuerierByFileImpl.
|
| Modifier and Type | Method and Description |
|---|---|
static TsFileSequenceReader.LocateStatus |
checkLocateStatus(IChunkMetadata chunkMetaData,
long spacePartitionStartPos,
long spacePartitionEndPos)
Check the location of a given chunkGroupMetaData with respect to a space partition constraint.
|
void |
clear()
clear caches (if used) to release memory.
|
List<TimeRange> |
convertSpace2TimePartition(List<Path> paths,
long spacePartitionStartPos,
long spacePartitionEndPos)
Convert the space partition constraint to the time partition constraint.
|
List<IChunkMetadata> |
getChunkMetaDataList(Path timeseriesPath) |
Map<Path,List<IChunkMetadata>> |
getChunkMetaDataMap(List<Path> paths) |
TSDataType |
getDataType(Path path) |
TsFileMetadata |
getWholeFileMetadata() |
void |
loadChunkMetaDatas(List<Path> paths)
this will load all chunk metadata of given paths into cache.
|
public MetadataQuerierByFileImpl(TsFileSequenceReader tsFileReader) throws IOException
IOExceptionpublic List<IChunkMetadata> getChunkMetaDataList(Path timeseriesPath) throws IOException
getChunkMetaDataList in interface IMetadataQuerierIOExceptionpublic Map<Path,List<IChunkMetadata>> getChunkMetaDataMap(List<Path> paths) throws IOException
getChunkMetaDataMap in interface IMetadataQuerierIOExceptionpublic TsFileMetadata getWholeFileMetadata()
getWholeFileMetadata in interface IMetadataQuerierpublic void loadChunkMetaDatas(List<Path> paths) throws IOException
IMetadataQueriercall this method before calling getChunkMetaDataList() will accelerate the reading of chunk metadata, which will only read TsMetaData once
loadChunkMetaDatas in interface IMetadataQuerierIOExceptionpublic TSDataType getDataType(Path path) throws IOException
getDataType in interface IMetadataQuerierIOExceptionpublic List<TimeRange> convertSpace2TimePartition(List<Path> paths, long spacePartitionStartPos, long spacePartitionEndPos) throws IOException
IMetadataQuerierconvertSpace2TimePartition in interface IMetadataQuerierpaths - selected paths in a query expressionspacePartitionStartPos - the start position of the space partitionspacePartitionEndPos - the end position of the space partitionIOExceptionpublic static TsFileSequenceReader.LocateStatus checkLocateStatus(IChunkMetadata chunkMetaData, long spacePartitionStartPos, long spacePartitionEndPos)
chunkMetaData - the given chunkMetaDataspacePartitionStartPos - the start position of the space partitionspacePartitionEndPos - the end position of the space partitionpublic void clear()
IMetadataQuerierclear in interface IMetadataQuerierCopyright © 2022 The Apache Software Foundation. All rights reserved.