Class DiskChunkReaderByTimestamp

  • All Implemented Interfaces:
    IReaderByTimestamp

    public class DiskChunkReaderByTimestamp
    extends java.lang.Object
    implements IReaderByTimestamp
    To read chunk data on disk by timestamp, this class implements an interface IReaderByTimestamp based on the data reader ChunkReader.

    • Constructor Summary

      Constructors 
      Constructor Description
      DiskChunkReaderByTimestamp​(org.apache.iotdb.tsfile.read.reader.chunk.ChunkReader chunkReaderByTimestamp)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] getValuesInTimestamps​(long[] timestamps, int length)
      Returns the corresponding value under this timestamp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DiskChunkReaderByTimestamp

        public DiskChunkReaderByTimestamp​(org.apache.iotdb.tsfile.read.reader.chunk.ChunkReader chunkReaderByTimestamp)
    • Method Detail

      • getValuesInTimestamps

        public java.lang.Object[] getValuesInTimestamps​(long[] timestamps,
                                                        int length)
                                                 throws java.io.IOException
        Description copied from interface: IReaderByTimestamp
        Returns the corresponding value under this timestamp. Returns null if no value under this timestamp.

        Note that calling this method will change the status of this reader irreversibly just like next. The difference is that next moves one step forward while getValueInTimestamp advances towards the given timestamp.

        Attention: DO call this method with monotonically increasing timestamps. There is no guarantee of correctness with any other way of calling. For example, DO NOT call this method twice with the same timestamp.

        Specified by:
        getValuesInTimestamps in interface IReaderByTimestamp
        Throws:
        java.io.IOException