public class YieldCallback<K> extends Object
Constructor and Description |
---|
YieldCallback() |
Modifier and Type | Method and Description |
---|---|
K |
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.
|
boolean |
hasYielded()
Called by the client to see if the iterator yielded
|
void |
yield(K key)
Called by the iterator when a next or seek call yields control.
|
public void yield(K key)
key
- the key position at which the iterator yielded.public boolean hasYielded()
public K getPositionAndReset()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.