Class DiskChunkReaderByTimestamp
- java.lang.Object
-
- org.apache.iotdb.db.query.reader.chunk.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 interfaceIReaderByTimestampbased on the data readerChunkReader.
-
-
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
-
Methods inherited from interface org.apache.iotdb.db.query.reader.series.IReaderByTimestamp
readerIsEmpty
-
-
-
-
Method Detail
-
getValuesInTimestamps
public java.lang.Object[] getValuesInTimestamps(long[] timestamps, int length) throws java.io.IOExceptionDescription copied from interface:IReaderByTimestampReturns 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 thatnextmoves one step forward whilegetValueInTimestampadvances 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:
getValuesInTimestampsin interfaceIReaderByTimestamp- Throws:
java.io.IOException
-
-