Interface IReaderByTimestamp

    • Method Detail

      • getValuesInTimestamps

        java.lang.Object[] getValuesInTimestamps​(long[] timestamps,
                                                 int length)
                                          throws java.io.IOException
        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.

        Throws:
        java.io.IOException
      • readerIsEmpty

        default boolean readerIsEmpty()
                               throws java.io.IOException
        Returns 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