org.apache.accumulo.core.client.lexicoder
Class BigIntegerLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.BigIntegerLexicoder
- All Implemented Interfaces:
- Encoder<BigInteger>, Lexicoder<BigInteger>, TypedValueCombiner.Encoder<BigInteger>
public class BigIntegerLexicoder
- extends Object
- implements Lexicoder<BigInteger>
A lexicoder to encode/decode a BigInteger to/from bytes that maintain its native Java sort order.
- Since:
- 1.6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BigIntegerLexicoder
public BigIntegerLexicoder()
encode
public byte[] encode(BigInteger v)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<BigInteger>
decode
public BigInteger decode(byte[] b)
throws ValueFormatException
- Specified by:
decode
in interface TypedValueCombiner.Encoder<BigInteger>
- Throws:
ValueFormatException
Copyright © 2015 Apache Accumulo Project. All rights reserved.