public static interface DataBlockEncoder.EncodedSeeker
setCurrentBuffer(ByteBuff).| Modifier and Type | Method and Description | 
|---|---|
| int | compareKey(CellComparator comparator,
          Cell key)Compare the given key against the current key | 
| Cell | getCell() | 
| Cell | getKey()From the current position creates a cell using the key part
 of the current buffer | 
| ByteBuffer | getValueShallowCopy()Does a shallow copy of the value at the current position. | 
| boolean | next()Move to next position | 
| void | rewind()Set position to beginning of given block | 
| int | seekToKeyInBlock(Cell key,
                boolean seekBefore)Moves the seeker position within the current block to:
 
 the last key that that is less than or equal to the given key if
  seekBeforeis false
 the last key that is strictly less than the given key if
 seekBeforeis true. | 
| void | setCurrentBuffer(ByteBuff buffer)Set on which buffer there will be done seeking. | 
void setCurrentBuffer(ByteBuff buffer)
buffer - Used for seeking.Cell getKey()
ByteBuffer getValueShallowCopy()
void rewind()
boolean next()
int seekToKeyInBlock(Cell key, boolean seekBefore)
seekBefore is false
 seekBefore is true. The caller is responsible for loading the
 previous block if the requested key turns out to be the first key of the
 current block.key - - Cell to which the seek should happenseekBefore - find the key strictly less than the given key in case
          of an exact match. Does not matter in case of an inexact match.int compareKey(CellComparator comparator, Cell key)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.