Class BufferedDataBlockEncoder.SeekerState
java.lang.Object
org.apache.hadoop.hbase.io.encoding.BufferedDataBlockEncoder.SeekerState
- Direct Known Subclasses:
DiffKeyDeltaEncoder.DiffSeekerState
,FastDiffDeltaEncoder.FastDiffSeekerState
- Enclosing class:
- BufferedDataBlockEncoder
-
Field Summary
Modifier and TypeFieldDescriptionprotected ByteBuff
protected KeyValue.KeyOnlyKeyValue
private final boolean
protected byte[]
We need to store a copy of the key.protected int
protected int
protected long
protected int
protected TagCompressionContext
protected byte[]
protected int
protected int
protected int
private final ObjectIntPair<ByteBuffer>
protected boolean
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyFromNext
(BufferedDataBlockEncoder.SeekerState nextState) Copy the state from the next one into this instance (the previous state placeholder).protected void
protected void
protected void
protected boolean
isValid()
protected void
setKey
(byte[] keyBuffer, long memTS) toCell()
private ExtendedCell
toOffheapCell
(ByteBuffer valAndTagsBuffer, int vOffset, int tagsLenSerializationSize) private ExtendedCell
toOnheapCell
(ByteBuffer valAndTagsBuffer, int vOffset, int tagsLenSerializationSize)
-
Field Details
-
currentBuffer
-
tagCompressionContext
-
valueOffset
-
keyLength
-
valueLength
-
lastCommonPrefix
-
tagsLength
-
tagsOffset
-
tagsCompressedLength
-
uncompressTags
-
keyBuffer
We need to store a copy of the key. -
tagsBuffer
-
memstoreTS
-
nextKvOffset
-
currentKey
-
tmpPair
-
includeTags
-
-
Constructor Details
-
SeekerState
-
-
Method Details
-
isValid
-
invalidate
-
ensureSpaceForKey
-
ensureSpaceForTags
-
setKey
-
copyFromNext
Copy the state from the next one into this instance (the previous state placeholder). Used to save the previous state when we are advancing the seeker to the next key/value. -
toCell
-
toOnheapCell
private ExtendedCell toOnheapCell(ByteBuffer valAndTagsBuffer, int vOffset, int tagsLenSerializationSize) -
toOffheapCell
private ExtendedCell toOffheapCell(ByteBuffer valAndTagsBuffer, int vOffset, int tagsLenSerializationSize)
-