Class BytesLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.AbstractLexicoder<byte[]>
-
- org.apache.accumulo.core.client.lexicoder.BytesLexicoder
-
public class BytesLexicoder extends 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 theReverseLexicoder.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description BytesLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decode(byte[] data)protected byte[]decodeUnchecked(byte[] data, int offset, int len)If offset == 0 and len == data.length, returns data.byte[]encode(byte[] data)-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(byte[] data)
-
decode
public byte[] decode(byte[] data)
- Specified by:
decodein interfaceEncoder<byte[]>- Overrides:
decodein classAbstractEncoder<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:
decodeUncheckedin classAbstractEncoder<byte[]>
-
-