Top Description Fields Constructors Methods
org.h2.index

pack-priv Class RangeCursor

extends Object
implements Cursor
Class Inheritance
All Implemented Interfaces
org.h2.index.Cursor
Imports
org.h2.message.DbException, org.h2.result.Row, .SearchRow, org.h2.value.Value, .ValueBigint

The cursor implementation for the range index.

Field Summary

Modifier and TypeField and Description
private boolean
private long
private Row
private final long
private final long
private final long

Constructor Summary

AccessConstructor and Description
pack-priv
RangeCursor(long start, long end, long step)

Method Summary

Modifier and TypeMethod and Description
public Row
get()

Implements org.h2.index.Cursor.get.

Get the complete current row.

public SearchRow
getSearchRow()

Implements org.h2.index.Cursor.getSearchRow.

Get the current row.

public boolean
next()

Implements org.h2.index.Cursor.next.

Skip to the next row if one is available.

public boolean
previous()

Implements org.h2.index.Cursor.previous.

Skip to the previous row if one is available.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beforeFirstback to summary
private boolean beforeFirst
currentback to summary
private long current
currentRowback to summary
private Row currentRow
endback to summary
private final long end
startback to summary
private final long start
stepback to summary
private final long step

Constructor Detail

RangeCursorback to summary
pack-priv RangeCursor(long start, long end, long step)

Method Detail

getback to summary
public Row get()

Implements org.h2.index.Cursor.get.

Doc from org.h2.index.Cursor.get.

Get the complete current row. All column are available.

Returns:Row

the complete row

Annotations
@Override
getSearchRowback to summary
public SearchRow getSearchRow()

Implements org.h2.index.Cursor.getSearchRow.

Doc from org.h2.index.Cursor.getSearchRow.

Get the current row. Only the data for indexed columns is available in this row.

Returns:SearchRow

the search row

Annotations
@Override
nextback to summary
public boolean next()

Implements org.h2.index.Cursor.next.

Doc from org.h2.index.Cursor.next.

Skip to the next row if one is available.

Returns:boolean

true if another row is available

Annotations
@Override
previousback to summary
public boolean previous()

Implements org.h2.index.Cursor.previous.

Doc from org.h2.index.Cursor.previous.

Skip to the previous row if one is available. No filtering is made here.

Returns:boolean

true if another row is available

Annotations
@Override