public final class VInt8IntEncoder extends IntEncoder
IntEncoder which implements variable length encoding. A number is
encoded as follows:
SimpleIntEncoder or write your own version of variable length
encoding, which can better handle negative values.| Constructor and Description |
|---|
VInt8IntEncoder() |
| 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() |
public 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-2013 Apache Software Foundation. All Rights Reserved.