Class DoubleLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Double>
-
- org.apache.accumulo.core.client.lexicoder.DoubleLexicoder
-
public class DoubleLexicoder extends AbstractLexicoder<Double>
A lexicoder for preserving the native Java sort order of Double values.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description DoubleLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
decode(byte[] b)
protected Double
decodeUnchecked(byte[] data, int offset, int len)
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.byte[]
encode(Double d)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(Double d)
-
decode
public Double decode(byte[] b)
- Specified by:
decode
in interfaceTypedValueCombiner.Encoder<Double>
- Overrides:
decode
in classAbstractEncoder<Double>
-
decodeUnchecked
protected Double decodeUnchecked(byte[] data, int offset, int len)
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<Double>
-
-