Class IterableRowsCursorHelper


  • public class IterableRowsCursorHelper
    extends Object
    Helper methods to create cursor from iterable of rows
    • Constructor Detail

      • IterableRowsCursorHelper

        public IterableRowsCursorHelper()
    • 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