Class TextLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
org.apache.accumulo.core.client.lexicoder.AbstractLexicoder<org.apache.hadoop.io.Text>
org.apache.accumulo.core.client.lexicoder.TextLexicoder
- All Implemented Interfaces:
- Encoder<org.apache.hadoop.io.Text>,- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.hadoop.io.Textdecode(byte[] b) protected org.apache.hadoop.io.TextdecodeUnchecked(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(org.apache.hadoop.io.Text data) Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoderdecode
- 
Constructor Details- 
TextLexicoderpublic TextLexicoder()
 
- 
- 
Method Details- 
encodepublic byte[] encode(org.apache.hadoop.io.Text data) 
- 
decodepublic org.apache.hadoop.io.Text decode(byte[] b) - Specified by:
- decodein interface- Encoder<org.apache.hadoop.io.Text>
- Overrides:
- decodein class- AbstractEncoder<org.apache.hadoop.io.Text>
 
- 
decodeUncheckedprotected org.apache.hadoop.io.Text decodeUnchecked(byte[] data, int offset, int len) Description copied from class:AbstractEncoderDecodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
- decodeUncheckedin class- AbstractEncoder<org.apache.hadoop.io.Text>
 
 
-