Class StringLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoder<String>
-
- org.apache.accumulo.core.client.lexicoder.StringLexicoder
-
public class StringLexicoder extends AbstractLexicoder<String>
This lexicoder encodes/decodes a given String to/from bytes without further processing. It can be combined with other encoders like theReverseLexicoder
to flip the default sort order.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description StringLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
decode(byte[] b)
protected String
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(String data)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(String data)
-
decode
public String decode(byte[] b)
-
decodeUnchecked
protected String 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<String>
-
-