@InterfaceAudience.Private public class CollectionBackedScanner extends NonReversedNonLazyKeyValueScanner
Modifier and Type | Field and Description |
---|---|
(package private) KeyValue.KVComparator |
comparator |
private Cell |
current |
private Iterable<Cell> |
data |
private Iterator<Cell> |
iter |
NO_NEXT_INDEXED_KEY
Constructor and Description |
---|
CollectionBackedScanner(KeyValue.KVComparator comparator,
Cell... array) |
CollectionBackedScanner(List<Cell> list) |
CollectionBackedScanner(List<Cell> list,
KeyValue.KVComparator comparator) |
CollectionBackedScanner(SortedSet<Cell> set) |
CollectionBackedScanner(SortedSet<Cell> set,
KeyValue.KVComparator comparator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the KeyValue scanner.
|
long |
getSequenceID()
Get the sequence id associated with this KeyValueScanner.
|
private void |
init() |
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, getNextIndexedKey, isFileScanner, realSeekDone, requestSeek, shouldUseScanner
final KeyValue.KVComparator comparator
private Cell current
public CollectionBackedScanner(SortedSet<Cell> set, KeyValue.KVComparator comparator)
public CollectionBackedScanner(List<Cell> list, KeyValue.KVComparator comparator)
public CollectionBackedScanner(KeyValue.KVComparator comparator, Cell... array)
private void init()
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 getSequenceID()
KeyValueScanner
public void close()
KeyValueScanner
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.