protected class MemStore.MemStoreScanner extends NonLazyKeyValueScanner
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
doRealSeek, enforceSeek, isFileScanner, realSeekDone, requestSeekpublic boolean seek(KeyValue key)
key - seek valuepublic boolean reseek(KeyValue key)
key - seek value (should be non-null)public KeyValue peek()
KeyValueScannerpublic KeyValue next()
KeyValueScannerpublic void close()
KeyValueScannerpublic long getSequenceID()
public boolean shouldUseScanner(Scan scan, SortedSet<byte[]> columns, long oldestUnexpiredTS)
KeyValueScannershouldUseScanner in interface KeyValueScannershouldUseScanner in class NonLazyKeyValueScannerscan - 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 TTLCopyright © 2014 The Apache Software Foundation. All Rights Reserved.