public class FourFlagsIntEncoder extends ChunksIntEncoder
ChunksIntEncoder
which encodes values in chunks of 4. Every group
starts with a single byte (called indicator) which represents 4 - 2 bit
flags, where the values:
VInt8IntEncoder
, and the
encoded bytes follow the indicator.value-4
, which saves some more bits.
DGapIntEncoder
)
encodeQueue, indicator, ordinal
Constructor and Description |
---|
FourFlagsIntEncoder() |
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.