Class FloatLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Float>
-
- org.apache.accumulo.core.client.lexicoder.FloatLexicoder
-
public class FloatLexicoder extends AbstractLexicoder<Float>
A lexicoder for preserving the native Java sort order of Float values.- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Constructor Description FloatLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Float
decode(byte[] b)
protected Float
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(Float f)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(Float f)
-
decode
public Float decode(byte[] b)
- Specified by:
decode
in interfaceTypedValueCombiner.Encoder<Float>
- Overrides:
decode
in classAbstractEncoder<Float>
-
decodeUnchecked
protected Float 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<Float>
- Throws:
ValueFormatException
-
-