org.apache.accumulo.core.client.lexicoder
public class ReverseLexicoder<T> extends Object 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) |
public byte[] encode(T data)
encode
in interface TypedValueCombiner.Encoder<T>
public T decode(byte[] data)
decode
in interface TypedValueCombiner.Encoder<T>
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.