Package org.apache.druid.query
Class IterableRowsCursorHelper
java.lang.Object
org.apache.druid.query.IterableRowsCursorHelper
Helper methods to create cursor from iterable of rows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCursorFromIterable(Iterable<Object[]> rows, RowSignature rowSignature) Creates a cursor that iterates over all the rows generated by the iterable.getCursorFromSequence(Sequence<Object[]> rows, RowSignature rowSignature) Creates a cursor that iterates over all the rows generated by the sequence.getCursorFromYielder(Yielder<Object[]> yielderParam, RowSignature rowSignature)
-
Constructor Details
-
IterableRowsCursorHelper
public IterableRowsCursorHelper()
-
-
Method Details
-
getCursorFromIterable
public static Pair<Cursor,Closeable> getCursorFromIterable(Iterable<Object[]> rows, RowSignature rowSignature) Creates a cursor that iterates over all the rows generated by the iterable. Presence of __time column is not a necessity -
getCursorFromSequence
public static Pair<Cursor,Closeable> getCursorFromSequence(Sequence<Object[]> rows, RowSignature rowSignature) Creates a cursor that iterates over all the rows generated by the sequence. Presence of __time column is not a necessity.Returns a pair of cursor that iterates over the rows and closeable that cleans up the created rowWalker
-
getCursorFromYielder
-