Class BigDecimalCombiner.BigDecimalEncoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoder<BigDecimal>
-
- org.apache.accumulo.core.iterators.user.BigDecimalCombiner.BigDecimalEncoder
-
- All Implemented Interfaces:
Encoder<BigDecimal>
,Lexicoder<BigDecimal>
- Enclosing class:
- BigDecimalCombiner
public static class BigDecimalCombiner.BigDecimalEncoder extends AbstractLexicoder<BigDecimal>
Provides the ability to encode scientific notation.
-
-
Constructor Summary
Constructors Constructor Description BigDecimalEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal
decode(byte[] b)
protected BigDecimal
decodeUnchecked(byte[] b, int offset, int len)
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.byte[]
encode(BigDecimal v)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(BigDecimal v)
-
decode
public BigDecimal decode(byte[] b)
- Specified by:
decode
in interfaceEncoder<BigDecimal>
- Overrides:
decode
in classAbstractEncoder<BigDecimal>
-
decodeUnchecked
protected BigDecimal decodeUnchecked(byte[] b, int offset, int len) throws ValueFormatException
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<BigDecimal>
- Throws:
ValueFormatException
-
-