org.apache.accumulo.core.client.lexicoder
Class StringLexicoder

java.lang.Object
  extended by 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

Constructor Summary
StringLexicoder()
           
 
Method Summary
 String decode(byte[] data)
           
 byte[] encode(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringLexicoder

public StringLexicoder()
Method Detail

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.