org.apache.accumulo.core.client.lexicoder
Class StringLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.StringLexicoder
- All Implemented Interfaces:
- Encoder<String>, Lexicoder<String>, TypedValueCombiner.Encoder<String>
public class StringLexicoder
- extends Object
- implements Lexicoder<String>
This lexicoder encodes/decodes a given String to/from bytes without further processing. It can be combined with other encoders like the
ReverseLexicoder
to flip the default sort order.
- Since:
- 1.6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringLexicoder
public StringLexicoder()
encode
public byte[] encode(String data)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<String>
decode
public String decode(byte[] data)
- Specified by:
decode
in interface TypedValueCombiner.Encoder<String>
Copyright © 2015 Apache Accumulo Project. All rights reserved.