Interface RowList

All Superinterfaces:
java.util.Iterator<Row>
All Known Subinterfaces:
ResultsetRows
All Known Implementing Classes:
AbstractResultsetRows, BufferedRowList, ResultsetRowsCursor, ResultsetRowsStatic, ResultsetRowsStreaming, XProtocolRowInputStream

public interface RowList
extends java.util.Iterator<Row>
A list of Rows.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int RESULT_SET_SIZE_UNKNOWN
    What's returned for the size of a row list when its size can not be determined.
  • Method Summary

    Modifier and Type Method Description
    default Row get​(int n)
    Optionally retrieve Row at index n.
    default int getPosition()
    Returns the current position.
    default Row previous()
    Optionally iterate backwards on the list.
    default int size()
    Only works on non dynamic row lists.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Field Details

  • Method Details

    • previous

      default Row previous()
      Optionally iterate backwards on the list.
      Returns:
      Row
    • get

      default Row get​(int n)
      Optionally retrieve Row at index n. Only works on non dynamic row lists.
      Parameters:
      n - row number
      Returns:
      Row
    • getPosition

      default int getPosition()
      Returns the current position.
      Returns:
      the current row number
    • size

      default int size()
      Only works on non dynamic row lists.
      Returns:
      the size of this row list