TypeCodec
instances useful for serializing between CQL types and Java 8 types, such as the ones
from the java.time
API and java.util.Optional
.See: Description
Class | Description |
---|---|
InstantCodec | |
LocalDateCodec | |
LocalDateTimeCodec |
TypeCodec that maps LocalDateTime to CQL timestamp , allowing
the setting and retrieval of timestamp columns as LocalDateTime
instances. |
LocalTimeCodec | |
OptionalCodec<T> |
A codec that wraps other codecs around JDK 8's
Optional API. |
ZonedDateTimeCodec |
TypeCodec that maps ZonedDateTime to CQL tuple<timestamp,varchar> , providing a pattern for maintaining timezone information in Cassandra. |
ZoneIdCodec |
TypeCodec
instances useful for serializing between CQL types and Java 8 types, such as the ones
from the java.time
API and java.util.Optional
.
Note that, while the driver remains globally compatible with older JDKs, classes in this package require the presence of a Java 8 or higher at runtime.
Copyright © 2012–2023. All rights reserved.