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 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

      public static Pair<Cursor,Closeable> getCursorFromYielder(Yielder<Object[]> yielderParam, RowSignature rowSignature)