Class FileSeriesReaderByTimestamp


  • public class FileSeriesReaderByTimestamp
    extends java.lang.Object
    Series reader is used to query one series of one tsfile, using this reader to query the value of a series with given timestamps.
    • Constructor Detail

      • FileSeriesReaderByTimestamp

        public FileSeriesReaderByTimestamp​(IChunkLoader chunkLoader,
                                           java.util.List<IChunkMetadata> chunkMetadataList)
        init with chunkLoader and chunkMetaDataList.
    • Method Detail

      • getValueInTimestamp

        public java.lang.Object getValueInTimestamp​(long timestamp)
                                             throws java.io.IOException
        get value with time equals timestamp. If there is no such point, return null.
        Throws:
        java.io.IOException
      • hasNext

        public boolean hasNext()
                        throws java.io.IOException
        Judge if the series reader has next time-value pair.
        Returns:
        true if has next, false if not.
        Throws:
        java.io.IOException