TypeCodec
instances useful for
serializing between CQL temporal types and Java primitive types.See: Description
Class | Description |
---|---|
SimpleDateCodec |
A
TypeCodec that maps CQL dates to Java primitive ints,
representing the number of days since the Epoch. |
SimpleTimestampCodec |
A
TypeCodec that maps CQL timestamps to Java primitive longs,
representing the number of milliseconds since the Epoch. |
TypeCodec
instances useful for
serializing between CQL temporal types and Java primitive types.
The codecs in this class provide the following mappings:
Codec | CQL type | Java type |
---|---|---|
SimpleTimestampCodec |
timestamp |
long (representing milliseconds since the Epoch) |
SimpleDateCodec |
date |
int (representing days since the Epoch) |
Copyright © 2012–2015. All rights reserved.