@InterfaceAudience.Private public class SnapshotSegmentScanner extends NonReversedNonLazyKeyValueScanner
CollectionBackedScanner
(but making it know about Segments was onerous).NO_NEXT_INDEXED_KEY
Constructor and Description |
---|
SnapshotSegmentScanner(ImmutableSegment segment) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the KeyValue scanner.
|
long |
getScannerOrder()
Get the order of this KeyValueScanner.
|
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 seekCell)
Reseek the scanner at or after the specified KeyValue.
|
boolean |
seek(Cell seekCell)
Seek the scanner at or after the specified KeyValue.
|
backwardSeek, seekToLastRow, seekToPreviousRow
doRealSeek, enforceSeek, getFilePath, getNextIndexedKey, isFileScanner, realSeekDone, requestSeek, shipped, shouldUseScanner
public SnapshotSegmentScanner(ImmutableSegment segment)
public Cell peek()
KeyValueScanner
public Cell next()
KeyValueScanner
public boolean seek(Cell seekCell)
KeyValueScanner
seekCell
- seek valuepublic boolean reseek(Cell seekCell)
KeyValueScanner
seekCell
- seek value (should be non-null)public long getScannerOrder()
KeyValueScanner
KeyValueScanner.getScannerOrder()
public void close()
KeyValueScanner
Copyright © 2007–2019 Cloudera. All rights reserved.