Class | Description |
---|---|
InstantCodec | |
LocalDateCodec | |
LocalTimeCodec |
TypeCodec that maps LocalTime <-> CQL time (long representing nanoseconds since midnight)
allowing the setting and retrieval of time columns as LocalTime
instances. |
OptionalCodec<T> |
A codec that wraps other codecs around JDK 8's
Optional API. |
ZonedDateTimeCodec |
TypeCodec that maps
ZonedDateTime <-> tuple<timestamp,varchar>
providing a pattern for maintaining timezone information in
Cassandra. |
TypeCodec
instances useful for
serializing between CQL types and JDK 8 types, such as the ones from the
java.time
API and Optional
.
The codecs in this class provide the following mappings:
Codec | CQL type | JDK 8 type |
---|---|---|
OptionalCodec |
Any | Optional |
LocalTimeCodec |
time |
LocalTime |
LocalDateCodec |
date |
LocalDate |
InstantCodec |
timestamp |
Instant |
ZonedDateTimeCodec |
tuple of
(timestamp ,
varchar ) |
ZonedDateTime |
Copyright © 2012–2015. All rights reserved.