zio.cassandra.session.cql.codec

Members list

Concise view

Type members

Classlikes

trait CellReads[T]

Low-level alternative for com.datastax.oss.driver.api.core.type.codec.TypeCodec that is meant ot be resolved at a compile-time.
Its main purpose is to provide a deserializer for a single column value (regardless of if it's a primitive type or an UDT).

Low-level alternative for com.datastax.oss.driver.api.core.type.codec.TypeCodec that is meant ot be resolved at a compile-time.
Its main purpose is to provide a deserializer for a single column value (regardless of if it's a primitive type or an UDT).

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CellReads.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CellWrites[T]

Low-level alternative for com.datastax.oss.driver.api.core.type.codec.TypeCodec that is meant ot be resolved at a compile-time.
Its main purpose is to provide a serializer for a single column value (regardless of if it's a primitive type or an UDT).

Low-level alternative for com.datastax.oss.driver.api.core.type.codec.TypeCodec that is meant ot be resolved at a compile-time.
Its main purpose is to provide a serializer for a single column value (regardless of if it's a primitive type or an UDT).

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CellWrites.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class Configuration(fieldNamesTransformation: FieldNamesTransformation)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Reads[T]

The main typeclass for decoding Cassandra values, the only one that matters.
zio.cassandra.session.cql.codec.CellReads and zio.cassandra.session.cql.codec.UdtReads are mostly an implementation details. As long as you can provide and instance of zio.cassandra.session.cql.codec.Reads for your class (regardless of how you've created it), everything should work just fine.

The main typeclass for decoding Cassandra values, the only one that matters.
zio.cassandra.session.cql.codec.CellReads and zio.cassandra.session.cql.codec.UdtReads are mostly an implementation details. As long as you can provide and instance of zio.cassandra.session.cql.codec.Reads for your class (regardless of how you've created it), everything should work just fine.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Reads extends ReadsInstances0

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Reads.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Reads.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Reads.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Reads.type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait UdtReads[T]

Deserializer created specifically for UDT values.
Note that unlike zio.cassandra.session.cql.codec.Reads, this reader can be (is) recursive, so each instance of zio.cassandra.session.cql.codec.UdtReads can be seen as an instance of zio.cassandra.session.cql.codec.CellReads, while at the same time it might need zio.cassandra.session.cql.codec.CellReads instances to work.

Deserializer created specifically for UDT values.
Note that unlike zio.cassandra.session.cql.codec.Reads, this reader can be (is) recursive, so each instance of zio.cassandra.session.cql.codec.UdtReads can be seen as an instance of zio.cassandra.session.cql.codec.CellReads, while at the same time it might need zio.cassandra.session.cql.codec.CellReads instances to work.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object UdtReads.type
trait UdtWrites[T]

Serializer created specifically for UDT values.
Note that this reader can be (is) recursive, so each instance of zio.cassandra.session.cql.codec.UdtWrites can be seen as an instance of zio.cassandra.session.cql.codec.CellWrites, while at the same time it might need zio.cassandra.session.cql.codec.CellWrites instances to work.

Serializer created specifically for UDT values.
Note that this reader can be (is) recursive, so each instance of zio.cassandra.session.cql.codec.UdtWrites can be seen as an instance of zio.cassandra.session.cql.codec.CellWrites, while at the same time it might need zio.cassandra.session.cql.codec.CellWrites instances to work.

The reason why it needs structure: UdtValue param is because we cannot create an UdtValue out of thin air, we can only fill it with values. The only one who can properly create an UdtValue is java driver, so it's up to a caller to ask the driver to create a dummy UdtValue, which we'll use.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object UdtWrites.type
sealed trait UnexpectedNullValue extends Throwable

Attributes

Companion:
object
Graph
Supertypes
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class UnexpectedNullValueInColumn(row: Row, cl: ColumnDefinition) extends RuntimeException with UnexpectedNullValue

Attributes

Graph
Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class UnexpectedNullValueInUdt(row: Row, cl: ColumnDefinition, udt: UdtValue, fieldName: String) extends RuntimeException with UnexpectedNullValue

Attributes

Graph
Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any