Class BigIntegerLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<BigInteger>
-
- org.apache.accumulo.core.client.lexicoder.BigIntegerLexicoder
-
- All Implemented Interfaces:
Encoder<BigInteger>
,Lexicoder<BigInteger>
,TypedValueCombiner.Encoder<BigInteger>
public class BigIntegerLexicoder extends AbstractLexicoder<BigInteger>
A lexicoder to encode/decode a BigInteger to/from bytes that maintain its native Java sort order.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description BigIntegerLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
decode(byte[] b)
protected BigInteger
decodeUnchecked(byte[] b, int offset, int origLen)
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.byte[]
encode(BigInteger v)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(BigInteger v)
-
decode
public BigInteger decode(byte[] b)
- Specified by:
decode
in interfaceTypedValueCombiner.Encoder<BigInteger>
- Overrides:
decode
in classAbstractEncoder<BigInteger>
-
decodeUnchecked
protected BigInteger decodeUnchecked(byte[] b, int offset, int origLen) throws ValueFormatException
Description copied from class:AbstractEncoder
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
decodeUnchecked
in classAbstractEncoder<BigInteger>
- Throws:
ValueFormatException
-
-