Class RowWalker<T>

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class RowWalker<T>
    extends Object
    implements Closeable
    Used by RowBasedStorageAdapter and RowBasedCursor to walk through rows. It allows multiple RowBasedCursor to share the same underlying Iterable. The class creates a yielder from the sequence to iterate over the rows. However, it doesn't call the sequence's close after iterating over it. close() should be called by the instantiators of the class to clear the resources held by the rowSequence and the corresponding yielder created to iterate over it.
    • Method Detail

      • isDone

        public boolean isDone()
      • currentRow

        public T currentRow()
      • advance

        public void advance()
      • reset

        public void reset()
      • skipToDateTime

        public void skipToDateTime​(org.joda.time.DateTime timestamp,
                                   boolean descending)