org.apache.accumulo.core.client.lexicoder
Class DateLexicoder

java.lang.Object
  extended by 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

Constructor Summary
DateLexicoder()
           
 
Method Summary
 Date decode(byte[] data)
           
 byte[] encode(Date data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateLexicoder

public DateLexicoder()
Method Detail

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.