Class FileSeriesReaderByTimestamp


  • public class FileSeriesReaderByTimestamp
    extends 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,
                                           List<IChunkMetadata> chunkMetadataList)
        init with chunkLoader and chunkMetaDataList.
    • Method Detail

      • getValueInTimestamp

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

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