| org.h2.index.Cursor
All known Subclasses: org.h2.index.ViewCursor, org.h2.index.RangeCursor, org.h2.index.LinkedCursor, org.h2.index.TreeCursor, org.h2.index.ScanCursor, org.h2.index.HashCursor, org.h2.index.MultiVersionCursor, org.h2.index.LinearHashCursor, org.h2.index.MetaCursor, org.h2.index.FunctionCursor, org.h2.index.BtreeCursor,
Cursor | public interface Cursor (Code) | | A cursor is a helper object to iterate through an index.
For indexes are sorted (such as the b tree index), it can iterate
to the very end of the index. For other indexes that don't support
that (such as a hash index), only one row is returned.
The cursor is initially positioned before the first row, that means
next() must be called before accessing data.
|
Method Summary | |
Row | get() Get the complete current row. | int | getPos() Get the position of the current row. | SearchRow | getSearchRow() Get the current row. | boolean | next() Skip to the next row if one is available. |
get | Row get() throws SQLException(Code) | | Get the complete current row.
All column are available.
the complete row |
getPos | int getPos()(Code) | | Get the position of the current row.
the position |
getSearchRow | SearchRow getSearchRow() throws SQLException(Code) | | Get the current row.
Only the data for indexed columns is available in this row.
the search row |
next | boolean next() throws SQLException(Code) | | Skip to the next row if one is available.
true if another row is available |
|
|