Class YieldCallback<K>
java.lang.Object
org.apache.accumulo.core.iterators.YieldCallback<K>
This callback handles the state of yielding within an iterator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.booleanCalled by the client to see if the iterator yieldedvoidCalled by the iterator when a next or seek call yields control.
- 
Constructor Details- 
YieldCallbackpublic YieldCallback()
 
- 
- 
Method Details- 
yieldCalled by the iterator when a next or seek call yields control.- Parameters:
- key- the key position at which the iterator yielded.
 
- 
hasYieldedpublic boolean hasYielded()Called by the client to see if the iterator yielded- Returns:
- true if iterator yielded control
 
- 
getPositionAndResetCalled 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:
- KThe key position
 
 
-