public final class SortingIntEncoder extends IntEncoderFilter
IntEncoderFilter which sorts the values to encode in ascending
order before encoding them.encoder| Constructor and Description |
|---|
SortingIntEncoder(IntEncoder encoder)
Initializes with the given encoder.
|
| 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 SortingIntEncoder(IntEncoder encoder)
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.