Package ai.velr

Class Rows

java.lang.Object
ai.velr.Rows
All Implemented Interfaces:
AutoCloseable, Iterable<List<Cell>>

public final class Rows extends Object implements AutoCloseable, Iterable<List<Cell>>
Streaming row cursor for a result table.

A rows cursor is single-pass. Each row returned from next() contains JVM-owned cell values and remains valid after the next fetch. Closing the owning table also closes open row cursors.

  • Method Details

    • next

      public List<Cell> next()
      Fetch the next row.
      Returns:
      next row, or null when the cursor is exhausted
    • iterator

      public Iterator<List<Cell>> iterator()
      Return an iterator over remaining rows.
      Specified by:
      iterator in interface Iterable<List<Cell>>
      Returns:
      row iterator
    • close

      public void close()
      Close this cursor.
      Specified by:
      close in interface AutoCloseable