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

java.lang.Object
  extended by org.apache.accumulo.core.client.lexicoder.TextLexicoder
All Implemented Interfaces:
Encoder<org.apache.hadoop.io.Text>, Lexicoder<org.apache.hadoop.io.Text>, TypedValueCombiner.Encoder<org.apache.hadoop.io.Text>

public class TextLexicoder
extends Object
implements Lexicoder<org.apache.hadoop.io.Text>

A lexicoder that preserves a Text's native sort order. It can be combined with other encoders like the ReverseLexicoder to flip the default sort order.

Since:
1.6.0

Constructor Summary
TextLexicoder()
           
 
Method Summary
 org.apache.hadoop.io.Text decode(byte[] data)
           
 byte[] encode(org.apache.hadoop.io.Text data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextLexicoder

public TextLexicoder()
Method Detail

encode

public byte[] encode(org.apache.hadoop.io.Text data)
Specified by:
encode in interface TypedValueCombiner.Encoder<org.apache.hadoop.io.Text>

decode

public org.apache.hadoop.io.Text decode(byte[] data)
Specified by:
decode in interface TypedValueCombiner.Encoder<org.apache.hadoop.io.Text>


Copyright © 2015 Apache Accumulo Project. All rights reserved.