Package org.apache.druid.query
Class IterableRowsCursorHelper
- java.lang.Object
-
- org.apache.druid.query.IterableRowsCursorHelper
-
public class IterableRowsCursorHelper extends Object
Helper methods to create cursor from iterable of rows
-
-
Constructor Summary
Constructors Constructor Description IterableRowsCursorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Pair<Cursor,Closeable>
getCursorFromIterable(Iterable<Object[]> rows, RowSignature rowSignature)
Creates a cursor that iterates over all the rows generated by the iterable.static Pair<Cursor,Closeable>
getCursorFromSequence(Sequence<Object[]> rows, RowSignature rowSignature)
Creates a cursor that iterates over all the rows generated by the sequence.static Pair<Cursor,Closeable>
getCursorFromYielder(Yielder<Object[]> yielderParam, RowSignature rowSignature)
-
-
-
Method Detail
-
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
-
-