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>
A lexicoder to encode/decode a BigInteger to/from bytes that maintain its native Java sort order.
- Since:
- 1.6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(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
-
Constructor Details
-
BigIntegerLexicoder
public BigIntegerLexicoder()
-
-
Method Details
-
encode
-
decode
- Specified by:
decode
in interfaceEncoder<BigInteger>
- Overrides:
decode
in classAbstractEncoder<BigInteger>
-
decodeUnchecked
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>
-