Class BytesLexicoder

java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<byte[]>
org.apache.accumulo.core.client.lexicoder.BytesLexicoder
All Implemented Interfaces:
Encoder<byte[]>, Lexicoder<byte[]>, org.apache.accumulo.core.iterators.TypedValueCombiner.Encoder<byte[]>

public class BytesLexicoder
extends org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<byte[]>
For each of the methods, this lexicoder just passes the input through untouched. It is meant to be combined with other lexicoders like the ReverseLexicoder.
Since:
1.6.0
  • Constructor Details

  • Method Details

    • encode

      public byte[] encode​(byte[] data)
    • decode

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

      protected byte[] decodeUnchecked​(byte[] data, int offset, int len)
      If offset == 0 and len == data.length, returns data. Otherwise, returns a new byte array with contents starting at data[offset] with length len. Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.
      Specified by:
      decodeUnchecked in class AbstractEncoder<byte[]>