org.apache.accumulo.core.client.lexicoder
Class LongLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.ULongLexicoder
org.apache.accumulo.core.client.lexicoder.LongLexicoder
- All Implemented Interfaces:
- Encoder<Long>, Lexicoder<Long>, TypedValueCombiner.Encoder<Long>
public class LongLexicoder
- extends ULongLexicoder
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongLexicoder
public LongLexicoder()
encode
public byte[] encode(Long l)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<Long>
- Overrides:
encode
in class ULongLexicoder
decode
public Long decode(byte[] data)
- Specified by:
decode
in interface TypedValueCombiner.Encoder<Long>
- Overrides:
decode
in class ULongLexicoder
Copyright © 2015 Apache Accumulo Project. All rights reserved.