Class IntegerLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Integer>
org.apache.accumulo.core.client.lexicoder.IntegerLexicoder
- All Implemented Interfaces:
Encoder<Integer>,Lexicoder<Integer>,org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Integer>
public class IntegerLexicoder
extends org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Integer>
A lexicoder for signed integers. The encoding sorts Integer.MIN_VALUE first and Integer.MAX_VALUE
last. The encoding sorts -2 before -1. It corresponds to the sort order of Integer.
- Since:
- 1.6.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
Constructor Details
-
IntegerLexicoder
public IntegerLexicoder()
-
-
Method Details
-
encode
-
decode
- Specified by:
decodein interfaceorg.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Integer>- Overrides:
decodein classAbstractEncoder<Integer>
-
decodeUnchecked
Description copied from class:AbstractEncoderDecodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
decodeUncheckedin classAbstractEncoder<Integer>
-