Interface IReaderByTimestamp
-
- All Known Implementing Classes:
ByTimestampReaderAdapter,DiskChunkReaderByTimestamp,SeriesReaderByTimestamp
public interface IReaderByTimestamp
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Object[]getValuesInTimestamps(long[] timestamps, int length)Returns the corresponding value under this timestamp.default booleanreaderIsEmpty()Returns whether there is no more data in reader.
-
-
-
Method Detail
-
getValuesInTimestamps
java.lang.Object[] getValuesInTimestamps(long[] timestamps, int length) throws java.io.IOExceptionReturns 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.
- Throws:
java.io.IOException
-
readerIsEmpty
default boolean readerIsEmpty() throws java.io.IOExceptionReturns whether there is no more data in reader.True means no more data. False means you can still get more data
- Throws:
java.io.IOException
-
-