org.apache.accumulo.core.iterators.user
Class BigDecimalCombiner.BigDecimalEncoder

java.lang.Object
  extended by org.apache.accumulo.core.iterators.user.BigDecimalCombiner.BigDecimalEncoder
All Implemented Interfaces:
TypedValueCombiner.Encoder<BigDecimal>
Enclosing class:
BigDecimalCombiner

public static class BigDecimalCombiner.BigDecimalEncoder
extends Object
implements TypedValueCombiner.Encoder<BigDecimal>

Provides the ability to encode scientific notation.


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

Constructor Detail

BigDecimalCombiner.BigDecimalEncoder

public BigDecimalCombiner.BigDecimalEncoder()
Method Detail

encode

public byte[] encode(BigDecimal v)
Specified by:
encode in interface TypedValueCombiner.Encoder<BigDecimal>

decode

public BigDecimal decode(byte[] b)
                  throws ValueFormatException
Specified by:
decode in interface TypedValueCombiner.Encoder<BigDecimal>
Throws:
ValueFormatException


Copyright © 2015 Apache Accumulo Project. All rights reserved.