Class ULongLexicoder

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
All Implemented Interfaces:
Encoder<Long>, Lexicoder<Long>, org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Long>
Direct Known Subclasses:
LongLexicoder

public class ULongLexicoder extends org.apache.accumulo.core.client.lexicoder.impl.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 Details

    • ULongLexicoder

      public ULongLexicoder()
  • Method Details

    • 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 class AbstractEncoder<Long>
    • decode

      public Long decode(byte[] b)
      Specified by:
      decode in interface org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<Long>
      Overrides:
      decode in class AbstractEncoder<Long>