public interface IndexCursor extends Cursor
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.Cursor.Id, Cursor.Position, Cursor.Savepoint
Modifier and Type | Method and Description |
---|---|
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.
|
Row |
findRowByEntry(Object... entryValues)
Finds 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.
|
afterLast, beforeFirst, currentRowMatches, currentRowMatches, deleteCurrentRow, findFirstRow, findFirstRow, findNextRow, findNextRow, findRow, 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, stream, updateCurrentRow, updateCurrentRowFromMap
forEach, spliterator
Index getIndex()
Row findRowByEntry(Object... entryValues) throws IOException
entryValues
- the column values for the index's columns.null
if a match could not be found.IOException
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 foundIOException
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.IOException
EntryIterableBuilder newEntryIterable(Object... entryValues)
entryValues
- the column values for the index's columns.Copyright © 2005–2024 OpenHMS. All rights reserved.