Class BigIntegerLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.AbstractLexicoder<BigInteger>
-
- org.apache.accumulo.core.client.lexicoder.BigIntegerLexicoder
-
- All Implemented Interfaces:
Encoder<BigInteger>,Lexicoder<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 BigIntegerdecode(byte[] b)protected BigIntegerdecodeUnchecked(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:
decodein interfaceEncoder<BigInteger>- Overrides:
decodein classAbstractEncoder<BigInteger>
-
decodeUnchecked
protected BigInteger decodeUnchecked(byte[] b, int offset, int origLen)
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<BigInteger>
-
-