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
FieldsModifier and TypeFieldDescriptionprotected ByteBuffprotected KeyValue.KeyOnlyKeyValueprivate final booleanprotected byte[]We need to store a copy of the key.protected intprotected intprotected longprotected intprotected TagCompressionContextprotected byte[]protected intprotected intprotected intprivate final ObjectIntPair<ByteBuffer>protected booleanprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyFromNext(BufferedDataBlockEncoder.SeekerState nextState) Copy the state from the next one into this instance (the previous state placeholder).protected voidprotected voidprotected voidprotected booleanisValid()protected voidsetKey(byte[] keyBuffer, long memTS) toCell()private CelltoOffheapCell(ByteBuffer valAndTagsBuffer, int vOffset, int tagsLenSerializationSize) private CelltoOnheapCell(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
-
toOffheapCell
-