public class KeyScanResultSet<T> extends IndexResultSet<T>
Scans the key elements of an index. Similar to KeyRangeForwardResultSet, but instead of returning the data, it returns the keys.
HGRandomAccessResult.GotoResult
converter, current, cursor, data, key, lookahead, next, prev
EMPTY
Constructor and Description |
---|
KeyScanResultSet(BJETxCursor cursor,
DatabaseEntry keyIn,
ByteArrayConverter<T> converter) |
Modifier and Type | Method and Description |
---|---|
protected T |
advance() |
protected T |
back() |
HGRandomAccessResult.GotoResult |
goTo(T value,
boolean exactMatch)
Position the result set at a particular value if that value
is indeed part of the result set.
|
boolean |
isOrdered()
Return
true if the elements in this search result are in ordered
and false otherwise. |
assignData, checkCursor, close, closeNoException, count, current, finalize, goAfterLast, goBeforeFirst, hasNext, hasPrev, moveNext, movePrev, next, positionToCurrent, prev, remove, removeCurrent
public KeyScanResultSet(BJETxCursor cursor, DatabaseEntry keyIn, ByteArrayConverter<T> converter)
protected T advance()
advance
in class IndexResultSet<T>
protected T back()
back
in class IndexResultSet<T>
public boolean isOrdered()
HGSearchResult
Return true
if the elements in this search result are in ordered
and false
otherwise. It is assumed that when elements are ordered,
they are instances of java.lang.Comparable
public HGRandomAccessResult.GotoResult goTo(T value, boolean exactMatch)
HGRandomAccessResult
Position the result set at a particular value if that value is indeed part of the result set.
goTo
in interface HGRandomAccessResult<T>
goTo
in class IndexResultSet<T>
value
- The value where this result set should be positioned.exactMatch
- A flag indicating whether the passed in value should
match exactly a value in the result set, or whether the cursor should
be positioned to the closest value. Here "closest" means "smallest
greater than the value
parameter.GotoResult
.