Class BigDecimalCombiner.BigDecimalEncoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.AbstractLexicoder<BigDecimal>
org.apache.accumulo.core.iterators.user.BigDecimalCombiner.BigDecimalEncoder
- All Implemented Interfaces:
Encoder<BigDecimal>
,Lexicoder<BigDecimal>
- Enclosing class:
- BigDecimalCombiner
Provides the ability to encode scientific notation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode
(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
-
Constructor Details
-
BigDecimalEncoder
public BigDecimalEncoder()
-
-
Method Details
-
encode
-
decode
- Specified by:
decode
in interfaceEncoder<BigDecimal>
- Overrides:
decode
in classAbstractEncoder<BigDecimal>
-
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<BigDecimal>
- Throws:
ValueFormatException
-