Package org.apache.druid.segment
Class RowWalker<T>
java.lang.Object
org.apache.druid.segment.RowWalker<T>
- All Implemented Interfaces:
Closeable,AutoCloseable
Used by
RowBasedCursorFactory 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.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadvance()voidclose()booleanisDone()voidreset()voidskipToDateTime(org.joda.time.DateTime timestamp, boolean descending)
-
Constructor Details
-
RowWalker
-
-
Method Details
-
isDone
public boolean isDone() -
currentRow
-
advance
public void advance() -
reset
public void reset() -
skipToDateTime
public void skipToDateTime(org.joda.time.DateTime timestamp, boolean descending) -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-