Class LongLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Long>
org.apache.accumulo.core.client.lexicoder.ULongLexicoder
org.apache.accumulo.core.client.lexicoder.LongLexicoder
- All Implemented Interfaces:
Encoder<Long>
,Lexicoder<Long>
,org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Long>
Signed long lexicoder. The encoding sorts Long.MIN_VALUE first and Long.MAX_VALUE last. The
encoding sorts -2l before -1l. It corresponds to the native Java sort order of Long.
- Since:
- 1.6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Long
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[]
Methods inherited from class org.apache.accumulo.core.client.lexicoder.ULongLexicoder
decode
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
Constructor Details
-
LongLexicoder
public LongLexicoder()
-
-
Method Details
-
encode
- Specified by:
encode
in interfaceorg.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Long>
- Overrides:
encode
in classULongLexicoder
-
decodeUnchecked
Description copied from class:AbstractEncoder
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Overrides:
decodeUnchecked
in classULongLexicoder
-