public class FilteredRAResultSet<T> extends FilteredResultSet<T> implements HGRandomAccessResult<T>
HGRandomAccessResult.GotoResult
Modifier and Type | Field and Description |
---|---|
protected HGRandomAccessResult<T> |
rs |
EMPTY
Modifier | Constructor and Description |
---|---|
protected |
FilteredRAResultSet() |
|
FilteredRAResultSet(HGRandomAccessResult<T> searchResult,
Mapping<T,Boolean> predicate,
int lookahead) |
Modifier and Type | Method and Description |
---|---|
void |
goAfterLast()
Move the cursor of this result set after the last result.
|
void |
goBeforeFirst()
Move the cursor of this result set before the first result.
|
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.
|
close, current, hasNext, hasPrev, isOrdered, next, prev, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, current, isOrdered
hasPrev, prev
protected HGRandomAccessResult<T> rs
protected FilteredRAResultSet()
public FilteredRAResultSet(HGRandomAccessResult<T> searchResult, Mapping<T,Boolean> predicate, int lookahead)
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>
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
.public void goAfterLast()
HGRandomAccessResult
Move the cursor of this result set after the last result. When positioned
after the last result, there is no current element, hasNext
will
return false and hasPrev
will return true if there's at least
one element in this result set.
goAfterLast
in interface HGRandomAccessResult<T>
public void goBeforeFirst()
HGRandomAccessResult
Move the cursor of this result set before the first result. This is equivalent
to resetting the cursor to its initial state, right after the result set was
created. When positioned
before the first result, there is no current element, hasPrev
will
return false and hasNext
will return true if there's at least
one element in this result set.
goBeforeFirst
in interface HGRandomAccessResult<T>
Copyright © 2015. All rights reserved.