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.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | currentRowMatchesEntry(Object...
the column values for the index's columns. entryValues)Returns |
| public void | findClosestRowByEntry(Object...
the column values for the index's columns. entryValues)Moves to the first row (as defined by the cursor) where the index entries are >= the given values. |
| public boolean | Returns: true if a valid row was found with the given values, false if no row was foundthe column values for the index's columns. entryValues)Moves to the first row (as defined by the cursor) where the index entries match the given values. |
| public Row | Returns: the matching row ornull if a match could not be found.the column values for the index's columns. entryValues)Finds the first row (as defined by the cursor) where the index entries match the given values. |
| public Index | |
| public EntryIterableBuilder | newEntryIterable(Object...
the column values for the index's columns. entryValues)Convenience method for constructing a new EntryIterableBuilder for this cursor. |
| currentRowMatchesEntry | back to summary |
|---|---|
| public boolean currentRowMatchesEntry(Object... entryValues) throws IOException Returns
| |
| findClosestRowByEntry | back to summary |
|---|---|
| public void findClosestRowByEntry(Object... entryValues) throws IOException Moves to the first row (as defined by the cursor) where the index entries are >= the given values. If a an exception is thrown, the cursor is restored to its previous state.
| |
| findFirstRowByEntry | back to summary |
|---|---|
| public boolean findFirstRowByEntry(Object... entryValues) throws IOException Moves to the first row (as defined by the cursor) where the index entries match the given values. If a match is not found (or an exception is thrown), the cursor is restored to its previous state. Warning, this method always starts searching from the beginning of the Table (you cannot use it to find successive matches).
| |
| findRowByEntry | back to summary |
|---|---|
| public Row findRowByEntry(Object... entryValues) throws IOException Finds the first row (as defined by the cursor) where the index entries match the given values. If a match is not found (or an exception is thrown), the cursor is restored to its previous state. | |
| getIndex | back to summary |
|---|---|
| public Index getIndex() | |
| newEntryIterable | back to summary |
|---|---|
| public EntryIterableBuilder newEntryIterable(Object... entryValues) Convenience method for constructing a new EntryIterableBuilder for this cursor. An EntryIterableBuilder provides a variety of options for more flexible iteration based on a specific index entry.
| |