public class SimpleTimestampCodec extends TypeCodec.PrimitiveLongCodec
TypeCodec.AbstractCollectionCodec<E,C extends Collection<E>>, TypeCodec.AbstractMapCodec<K,V>, TypeCodec.AbstractTupleCodec<T>, TypeCodec.AbstractUDTCodec<T>, TypeCodec.PrimitiveBooleanCodec, TypeCodec.PrimitiveByteCodec, TypeCodec.PrimitiveDoubleCodec, TypeCodec.PrimitiveFloatCodec, TypeCodec.PrimitiveIntCodec, TypeCodec.PrimitiveLongCodec, TypeCodec.PrimitiveShortCodec| Modifier and Type | Field and Description |
|---|---|
static SimpleTimestampCodec |
instance |
| Constructor and Description |
|---|
SimpleTimestampCodec() |
| Modifier and Type | Method and Description |
|---|---|
long |
deserializeNoBoxing(ByteBuffer bytes,
ProtocolVersion protocolVersion) |
String |
format(Long value) |
Long |
parse(String value) |
ByteBuffer |
serializeNoBoxing(long value,
ProtocolVersion protocolVersion) |
deserialize, serializeaccepts, accepts, accepts, accepts, ascii, bigint, blob, cboolean, cdouble, cfloat, cint, counter, custom, date, decimal, duration, getCqlType, getJavaType, inet, list, map, set, smallInt, time, timestamp, timeUUID, tinyInt, toString, tuple, userType, uuid, varchar, varintpublic static final SimpleTimestampCodec instance
public ByteBuffer serializeNoBoxing(long value, ProtocolVersion protocolVersion)
serializeNoBoxing in class TypeCodec.PrimitiveLongCodecpublic long deserializeNoBoxing(ByteBuffer bytes, ProtocolVersion protocolVersion)
deserializeNoBoxing in class TypeCodec.PrimitiveLongCodecCopyright © 2012–2018. All rights reserved.