Class YieldCallback<K>
java.lang.Object
org.apache.accumulo.core.iterators.YieldCallback<K>
This callback handles the state of yielding within an iterator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled by the client to get the yield position used as the start key (non-inclusive) of the range in a subsequent seek call when the iterator is rebuilt.boolean
Called by the client to see if the iterator yieldedvoid
Called by the iterator when a next or seek call yields control.
-
Constructor Details
-
YieldCallback
public YieldCallback()
-
-
Method Details
-
yield
Called by the iterator when a next or seek call yields control.- Parameters:
key
- the key position at which the iterator yielded.
-
hasYielded
public boolean hasYielded()Called by the client to see if the iterator yielded- Returns:
- true if iterator yielded control
-
getPositionAndReset
Called by the client to get the yield position used as the start key (non-inclusive) of the range in a subsequent seek call when the iterator is rebuilt. This will also reset the state returned by hasYielded.- Returns:
K
The key position
-