Class TextLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.clientImpl.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>
public class TextLexicoder extends AbstractLexicoder<org.apache.hadoop.io.Text>
A lexicoder that preserves a Text's native sort order. It can be combined with other encoders like theReverseLexicoder
to flip the default sort order.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description TextLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.io.Text
decode(byte[] b)
protected org.apache.hadoop.io.Text
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(org.apache.hadoop.io.Text data)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(org.apache.hadoop.io.Text data)
-
decode
public org.apache.hadoop.io.Text decode(byte[] b)
- Specified by:
decode
in interfaceEncoder<org.apache.hadoop.io.Text>
- Overrides:
decode
in classAbstractEncoder<org.apache.hadoop.io.Text>
-
decodeUnchecked
protected org.apache.hadoop.io.Text 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<org.apache.hadoop.io.Text>
-
-