KandraCodec
class KandraCodec
Converts values between Kotlin types and the DataStax Java driver's type system.
Null contract: if a column is NULL in Scylla:
Nullable Kotlin type → returns
null(correct)Non-nullable Kotlin type → throws KandraQueryException with a clear message
Encode null contract: if value is null on write:
Nullable Kotlin type → returns KandraUnset (leave column unchanged, no tombstone)
Non-nullable Kotlin type → throws KandraQueryException
Custom types can be registered via registerEncoder and registerDecoder. A shared default instance is available via KandraCodec.default.
Functions
Link copied to clipboard
Reads a column from row using the column's metadata and returns a typed Kotlin value.
Link copied to clipboard
Link copied to clipboard