org.apache.accumulo.core.client.lexicoder
Class DateLexicoder
java.lang.Object
org.apache.accumulo.core.client.lexicoder.DateLexicoder
- All Implemented Interfaces:
- Encoder<Date>, Lexicoder<Date>, TypedValueCombiner.Encoder<Date>
public class DateLexicoder
- extends Object
- implements Lexicoder<Date>
A lexicoder for date objects. It preserves the native Java sort order for Date.
- Since:
- 1.6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateLexicoder
public DateLexicoder()
encode
public byte[] encode(Date data)
- Specified by:
encode
in interface TypedValueCombiner.Encoder<Date>
decode
public Date decode(byte[] data)
- Specified by:
decode
in interface TypedValueCombiner.Encoder<Date>
Copyright © 2015 Apache Accumulo Project. All rights reserved.