Package org.h2.index

Class RangeCursor

java.lang.Object
org.h2.index.RangeCursor
All Implemented Interfaces:
Cursor

class RangeCursor extends Object implements Cursor
The cursor implementation for the range index.
  • Field Details

    • beforeFirst

      private boolean beforeFirst
    • current

      private long current
    • currentRow

      private Row currentRow
    • start

      private final long start
    • end

      private final long end
    • step

      private final long step
  • Constructor Details

    • RangeCursor

      RangeCursor(long start, long end, long step)
  • Method Details

    • get

      public Row get()
      Description copied from interface: Cursor
      Get the complete current row. All column are available.
      Specified by:
      get in interface Cursor
      Returns:
      the complete row
    • getSearchRow

      public SearchRow getSearchRow()
      Description copied from interface: Cursor
      Get the current row. Only the data for indexed columns is available in this row.
      Specified by:
      getSearchRow in interface Cursor
      Returns:
      the search row
    • next

      public boolean next()
      Description copied from interface: Cursor
      Skip to the next row if one is available.
      Specified by:
      next in interface Cursor
      Returns:
      true if another row is available
    • previous

      public boolean previous()
      Description copied from interface: Cursor
      Skip to the previous row if one is available. No filtering is made here.
      Specified by:
      previous in interface Cursor
      Returns:
      true if another row is available