protected class DefaultMemStore.MemStoreScanner extends NonLazyKeyValueScanner
| Modifier and Type | Method and Description |
|---|---|
boolean |
backwardSeek(Cell 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.
|
Cell |
next()
Return the next Cell in this scanner, iterating the scanner
|
Cell |
peek()
Look at the next Cell in this scanner, but do not iterate scanner.
|
boolean |
reseek(Cell key)
Move forward on the sub-lists set previously by seek.
|
boolean |
seek(Cell key)
Set the scanner at the seek key.
|
boolean |
seekToLastRow()
Seek the scanner at the first KeyValue of last row
|
boolean |
seekToPreviousRow(Cell 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.
|
doRealSeek, enforceSeek, getNextIndexedKey, isFileScanner, realSeekDone, requestSeekpublic boolean seek(Cell key)
key - seek valuepublic boolean reseek(Cell key)
key - seek value (should be non-null)public Cell peek()
KeyValueScannerpublic Cell 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 TTLpublic boolean backwardSeek(Cell key)
key - seek KeyValuepublic boolean seekToPreviousRow(Cell originalKey)
originalKey - seek valuepublic boolean seekToLastRow()
KeyValueScanner