Class TextLexicoder

  • All Implemented Interfaces:
    Encoder<>, Lexicoder<>

    public class TextLexicoder
    extends org.apache.accumulo.core.clientImpl.lexicoder.AbstractLexicoder<>
    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.
    • Constructor Detail

      • TextLexicoder

        public TextLexicoder()
    • Method Detail

      • encode

        public byte[] encode​( data)
      • decode

        public decode​(byte[] b)
        Specified by:
        decode in interface Encoder<>
        decode in class AbstractEncoder<>
      • decodeUnchecked

        protected 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 class AbstractEncoder<>