|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.NonLazyKeyValueScanner
org.apache.hadoop.hbase.regionserver.MemStore.MemStoreScanner
protected class MemStore.MemStoreScanner
Method Summary | |
---|---|
boolean |
backwardSeek(KeyValue key)
Seek scanner to the given key first. |
void |
close()
Close the KeyValue scanner. |
long |
getSequenceID()
MemStoreScanner returns max value as sequence id because it will always have the latest data among all files. |
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 key)
Move forward on the sub-lists set previously by seek. |
boolean |
seek(KeyValue key)
Set the scanner at the seek key. |
boolean |
seekToLastRow()
Seek the scanner at the first KeyValue of last row |
boolean |
seekToPreviousRow(KeyValue originalKey)
Separately get the KeyValue before the specified key from kvset and snapshotset, and use the row of higher one as the previous row of specified key, then seek to the first KeyValue of previous row |
boolean |
shouldUseScanner(Scan scan,
SortedSet<byte[]> columns,
long oldestUnexpiredTS)
Allows to filter out scanners (both StoreFile and memstore) that we don't want to use based on criteria such as Bloom filters and timestamp ranges. |
Methods inherited from class org.apache.hadoop.hbase.regionserver.NonLazyKeyValueScanner |
---|
doRealSeek, enforceSeek, getNextIndexedKey, isFileScanner, realSeekDone, requestSeek |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean seek(KeyValue key)
key
- seek value
public boolean reseek(KeyValue key)
key
- seek value (should be non-null)
public KeyValue peek()
KeyValueScanner
public KeyValue next()
KeyValueScanner
public void close()
KeyValueScanner
public long getSequenceID()
public boolean shouldUseScanner(Scan scan, SortedSet<byte[]> columns, long oldestUnexpiredTS)
KeyValueScanner
shouldUseScanner
in interface KeyValueScanner
shouldUseScanner
in class NonLazyKeyValueScanner
scan
- the scan that we are selecting scanners forcolumns
- the set of columns in the current column family, or null if
not specified by the scanoldestUnexpiredTS
- the oldest timestamp we are interested in for
this query, based on TTL
public boolean backwardSeek(KeyValue key)
key
- seek KeyValue
public boolean seekToPreviousRow(KeyValue originalKey)
originalKey
- seek value
public boolean seekToLastRow()
KeyValueScanner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |