|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Private public interface CellSearcher
Methods for seeking to a random Cell
inside a sorted collection of cells. Indicates that
the implementation is able to navigate between cells without iterating through every cell.
Method Summary | |
---|---|
void |
positionAfterLastCell()
Note: This may not be appropriate to have in the interface. |
boolean |
positionAt(Cell key)
Do everything within this scanner's power to find the key. |
CellScannerPosition |
positionAtOrAfter(Cell key)
Same as positionAt(..), but go to the extra effort of finding the next key if there's no exact match. |
CellScannerPosition |
positionAtOrBefore(Cell key)
Same as positionAt(..), but go to the extra effort of finding the previous key if there's no exact match. |
void |
resetToBeforeFirstEntry()
Reset any state in the scanner so it appears it was freshly opened. |
boolean |
seekForwardTo(Cell key)
Note: Added for backwards compatibility with KeyValueScanner
Look for the key, but only look after the current position. |
CellScannerPosition |
seekForwardToOrAfter(Cell key)
Same as seekForwardTo(..), but go to the extra effort of finding the next key if there's no exact match. |
CellScannerPosition |
seekForwardToOrBefore(Cell key)
Same as seekForwardTo(..), but go to the extra effort of finding the next key if there's no exact match. |
Methods inherited from interface org.apache.hadoop.hbase.codec.prefixtree.scanner.ReversibleCellScanner |
---|
previous, previousRow |
Methods inherited from interface org.apache.hadoop.hbase.CellScanner |
---|
advance, current |
Method Detail |
---|
void resetToBeforeFirstEntry()
boolean positionAt(Cell key)
key
- position the CellScanner exactly on this key
CellScannerPosition positionAtOrBefore(Cell key)
key
- position the CellScanner on this key or the closest cell before
CellScannerPosition positionAtOrAfter(Cell key)
key
- position the CellScanner on this key or the closest cell after
boolean seekForwardTo(Cell key)
KeyValueScanner
Look for the key, but only look after the current position. Probably not needed for an
efficient tree implementation, but is important for implementations without random access such
as unencoded KeyValue blocks.
key
- position the CellScanner exactly on this key
CellScannerPosition seekForwardToOrBefore(Cell key)
key
-
CellScannerPosition seekForwardToOrAfter(Cell key)
key
-
void positionAfterLastCell()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |