|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.AbstractKeyValueScanner
org.apache.hadoop.hbase.util.CollectionBackedScanner
public class CollectionBackedScanner
Utility scanner that wraps a sortable collection and serves as a KeyValueScanner.
Constructor Summary | |
---|---|
CollectionBackedScanner(KeyValue.KVComparator comparator,
KeyValue... array)
|
|
CollectionBackedScanner(List<KeyValue> list)
|
|
CollectionBackedScanner(List<KeyValue> list,
KeyValue.KVComparator comparator)
|
|
CollectionBackedScanner(SortedSet<KeyValue> set)
|
|
CollectionBackedScanner(SortedSet<KeyValue> set,
KeyValue.KVComparator comparator)
|
Method Summary | |
---|---|
void |
close()
Close the KeyValue scanner. |
long |
getSequenceID()
Get the sequence id associated with this KeyValueScanner. |
KeyValue |
next()
Return the next KeyValue in this scanner, iterating the scanner |
KeyValue |
peek()
Look at the next KeyValue in this scanner, but do not iterate scanner. |
boolean |
reseek(KeyValue seekKv)
Reseek the scanner at or after the specified KeyValue. |
boolean |
seek(KeyValue seekKv)
Seek the scanner at or after the specified KeyValue. |
Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractKeyValueScanner |
---|
seekExactly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionBackedScanner(SortedSet<KeyValue> set)
public CollectionBackedScanner(SortedSet<KeyValue> set, KeyValue.KVComparator comparator)
public CollectionBackedScanner(List<KeyValue> list)
public CollectionBackedScanner(List<KeyValue> list, KeyValue.KVComparator comparator)
public CollectionBackedScanner(KeyValue.KVComparator comparator, KeyValue... array)
Method Detail |
---|
public KeyValue peek()
KeyValueScanner
public KeyValue next()
KeyValueScanner
public boolean seek(KeyValue seekKv)
KeyValueScanner
seekKv
- seek value
public boolean reseek(KeyValue seekKv)
KeyValueScanner
seekKv
- seek value (should be non-null)
public long getSequenceID()
KeyValueScanner
public void close()
KeyValueScanner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |