indexing-service/src/main/java/org/apache/druid/indexing/input/DruidSegmentReader.java
/**
   * Given a {@link Cursor} create a {@link Sequence} that returns the rows of the cursor as
   * Map<String, Object> intermediate rows, selecting the dimensions and metrics of this segment reader.
   *
   * @param cursor A cursor
   *
   * @return A sequence of intermediate rows
   */
Given a  Cursor create a  Sequence that returns the rows of the cursor as
Map intermediate rows, selecting the dimensions and metrics of this segment reader.

@param cursor A cursor

@return A sequence of intermediate rows
Given a Cursor create a Sequence that returns the rows of the cursor as Map intermediate rows selecting the dimensions and metrics of this segment reader . @param cursor A cursor @return A sequence of intermediate rows
private Sequence<Map<String, Object>> cursorToSequence(final Cursor cursor, final Set<String> columnsToRead)
  {
    return Sequences.simple(
        () -> new IntermediateRowFromCursorIterator(cursor, columnsToRead)
    );
  }
private Sequence < Map < String , Object > > cursorToSequence ( final Cursor cursor , final Set < String > columnsToRead ) { return Sequences . simple ( ( ) -> new IntermediateRowFromCursorIterator ( cursor , columnsToRead ) ) ; }
Given a {@link Cursor} create a {@link Sequence} that returns the rows of the cursor as
 Map<String, Object> intermediate rows, selecting the dimensions and metrics of this segment reader.
Given a { @link Cursor } create a { @link Sequence } that returns the rows of the cursor as Map<String Object > intermediate rows selecting the dimensions and metrics of this segment reader .