Class DateLexicoder
- java.lang.Object
-
- org.apache.accumulo.core.client.lexicoder.AbstractEncoder<T>
-
- org.apache.accumulo.core.client.lexicoder.impl.AbstractLexicoder<Date>
-
- org.apache.accumulo.core.client.lexicoder.DateLexicoder
-
public class DateLexicoder extends AbstractLexicoder<Date>
A lexicoder for date objects. It preserves the native Java sort order for Date.- Since:
- 1.6.0
-
-
Constructor Summary
Constructors Constructor Description DateLexicoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
decode(byte[] b)
protected Date
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(Date data)
-
Methods inherited from class org.apache.accumulo.core.client.lexicoder.AbstractEncoder
decode
-
-
-
-
Method Detail
-
encode
public byte[] encode(Date data)
-
decode
public Date decode(byte[] b)
- Specified by:
decode
in interfaceTypedValueCombiner.Encoder<Date>
- Overrides:
decode
in classAbstractEncoder<Date>
-
decodeUnchecked
protected Date decodeUnchecked(byte[] data, int offset, int len)
Description copied from class:AbstractEncoder
Decodes a byte array without checking if the offset and len exceed the bounds of the actual array.- Specified by:
decodeUnchecked
in classAbstractEncoder<Date>
-
-