Top Description Fields Constructors Methods
org.h2.index

pack-priv Class VirtualTableCursor

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

A cursor for a virtual table. This implementation filters the rows (only returns entries that are larger or equal to "first", and smaller than last or equal to "last").

Field Summary

Modifier and TypeField and Description
private final SearchRow
private final VirtualTableIndex
private final SearchRow
private final ResultInterface
pack-priv Row
pack-priv Value[]

Constructor Summary

AccessConstructor and Description
pack-priv
VirtualTableCursor(VirtualTableIndex
index
index
,
SearchRow
first row
first
,
SearchRow
last row
last
,
ResultInterface
the result
result
)

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.

private boolean

Returns:

true if another row is available
nextImpl
()

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

firstback to summary
private final SearchRow first
indexback to summary
private final VirtualTableIndex index
lastback to summary
private final SearchRow last
resultback to summary
private final ResultInterface result
rowback to summary
pack-priv Row row
valuesback to summary
pack-priv Value[] values

Constructor Detail

VirtualTableCursorback to summary
pack-priv VirtualTableCursor(VirtualTableIndex index, SearchRow first, SearchRow last, ResultInterface result)
Parameters
index:VirtualTableIndex

index

first:SearchRow

first row

last:SearchRow

last row

result:ResultInterface

the result

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
nextImplback to summary
private boolean nextImpl()

Skip to the next row if one is available. This method does not filter.

Returns:boolean

true if another row is available

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