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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LongdecodeUnchecked(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
decodeMethods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
Constructor Details
-
LongLexicoder
public LongLexicoder()
-
-
Method Details
-
encode
- Specified by:
encodein interfaceorg.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Long>- Overrides:
encodein classULongLexicoder
-
decodeUnchecked
Description copied from class:AbstractEncoderDecodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Overrides:
decodeUncheckedin classULongLexicoder
-