|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IndexCursor
Cursor backed by an Index with extended traversal options. Table
traversal will be in the order defined by the backing index. Lookups which
utilize the columns of the index will be fast.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.healthmarketscience.jackcess.Cursor |
|---|
Cursor.Id, Cursor.Position, Cursor.Savepoint |
| Method Summary | |
|---|---|
boolean |
currentRowMatchesEntry(Object... entryValues)
Returns true if the current row matches the given index entries. |
void |
findClosestRowByEntry(Object... entryValues)
Moves to the first row (as defined by the cursor) where the index entries are >= the given values. |
boolean |
findFirstRowByEntry(Object... entryValues)
Moves to the first row (as defined by the cursor) where the index entries match the given values. |
Index |
getIndex()
|
EntryIterableBuilder |
newEntryIterable(Object... entryValues)
Convenience method for constructing a new EntryIterableBuilder for this cursor. |
| Methods inherited from interface com.healthmarketscience.jackcess.Cursor |
|---|
afterLast, beforeFirst, currentRowMatches, currentRowMatches, deleteCurrentRow, findFirstRow, findFirstRow, findNextRow, findNextRow, getColumnMatcher, getCurrentRow, getCurrentRow, getCurrentRowValue, getErrorHandler, getId, getNextRow, getNextRow, getPreviousRow, getPreviousRow, getSavepoint, getTable, isAfterLast, isBeforeFirst, isCurrentRowDeleted, iterator, moveNextRows, movePreviousRows, moveToNextRow, moveToPreviousRow, newIterable, reset, restoreSavepoint, setColumnMatcher, setCurrentRowValue, setErrorHandler, updateCurrentRow, updateCurrentRowFromMap |
| Method Detail |
|---|
Index getIndex()
boolean findFirstRowByEntry(Object... entryValues)
throws IOException
Warning, this method always starts searching from the beginning of the Table (you cannot use it to find successive matches).
entryValues - the column values for the index's columns.
true if a valid row was found with the given values,
false if no row was found
IOException
void findClosestRowByEntry(Object... entryValues)
throws IOException
entryValues - the column values for the index's columns.
IOException
boolean currentRowMatchesEntry(Object... entryValues)
throws IOException
true if the current row matches the given index entries.
entryValues - the column values for the index's columns.
IOExceptionEntryIterableBuilder newEntryIterable(Object... entryValues)
entryValues - the column values for the index's columns.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||