public class ReverseLexicoder<T>
extends org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<T>
DateLexicoder
, the most recent date will be sorted first and the
oldest date will be sorted last. If it's applied to LongLexicoder
, the Long.MAX_VALUE will be sorted first and Long.MIN_VALUE will be sorted last,
etc...Constructor and Description |
---|
ReverseLexicoder(Lexicoder<T> lexicoder) |
Modifier and Type | Method and Description |
---|---|
protected T |
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(T data) |
decode, decode
public byte[] encode(T data)
protected T decodeUnchecked(byte[] data, int offset, int len)
AbstractEncoder
decodeUnchecked
in class AbstractEncoder<T>
Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.