Class ULongLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoder<Long>
-
- org.apache.accumulo.core.client.lexicoder.ULongLexicoder
-
- Direct Known Subclasses:
LongLexicoder
public class ULongLexicoder extends AbstractLexicoder<Long>
Unsigned long lexicoder. The lexicographic encoding sorts first 0l and -1l last. This encoding does not correspond to the sort of Long because it does not consider the sign bit. If Java had an unsigned long type, this encoder would correspond to its sort order.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description ULongLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
decode(byte[] b)
protected 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[]
encode(Long l)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(Long l)
-
decodeUnchecked
protected Long 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<Long>
-
-