public class EightFlagsIntEncoder extends ChunksIntEncoder
ChunksIntEncoder
which encodes data in chunks of 8. Every group
starts with a single byte (called indicator) which represents 8 - 1 bit
flags, where the value:
VInt8IntEncoder
, and the
encoded bytes follow the indicator.value-2
, which saves some more bits.
DGapIntEncoder
)
encodeQueue, indicator, ordinal
Constructor and Description |
---|
EightFlagsIntEncoder() |
Modifier and Type | Method and Description |
---|---|
IntDecoder |
createMatchingDecoder()
Returns an
IntDecoder which can decode the values that were encoded
with this encoder. |
void |
encode(IntsRef values,
BytesRef buf)
Encodes the values to the given buffer.
|
String |
toString() |
encodeChunk
public void encode(IntsRef values, BytesRef buf)
IntEncoder
encode
in class IntEncoder
public IntDecoder createMatchingDecoder()
IntEncoder
IntDecoder
which can decode the values that were encoded
with this encoder.createMatchingDecoder
in class IntEncoder
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.