public class ReverseLexicoder<T> extends AbstractLexicoder<T> implements Lexicoder<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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode
public byte[] encode(T data)
encode
in interface TypedValueCombiner.Encoder<T>
protected T decodeUnchecked(byte[] data, int offset, int len)
AbstractEncoder
decodeUnchecked
in class AbstractEncoder<T>
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.