org.apache.lucene.facet.encoding
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() |
encodeChunkpublic void encode(IntsRef values, BytesRef buf)
IntEncoderencode in class IntEncoderpublic IntDecoder createMatchingDecoder()
IntEncoderIntDecoder which can decode the values that were encoded
with this encoder.createMatchingDecoder in class IntEncoderCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.