org.apache.accumulo.core.client.lexicoder
Class BigIntegerLexicoder

java.lang.Object
  extended by 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

Constructor Summary
BigIntegerLexicoder()
           
 
Method Summary
 BigInteger decode(byte[] b)
           
 byte[] encode(BigInteger v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigIntegerLexicoder

public BigIntegerLexicoder()
Method Detail

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.