Interface IMetadataQuerier

    • 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
      • 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
      • 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 expression
        spacePartitionStartPos - the start position of the space partition
        spacePartitionEndPos - 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.