package types
Offers type conversion magic, so you can receive Cassandra column values in a form you like the most. Simply specify the type you want to use on the Scala side, and the column value will be converted automatically. Works also with complex objects like collections.
- Alphabetic
- By Inheritance
- types
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait CanBuildFrom[-Elem, To] extends Serializable
Serves the same purpose as standard Scala
CanBuildFrom, however this one isSerializable. - sealed trait CassandraOption[+A] extends Product with Serializable
An Optional value with Cassandra in mind.
An Optional value with Cassandra in mind. There are three options Value(value): Representing a value to be inserted from C* Unset: Representing a value which should be skipped when writing to C* Null: Representing a java
null, treated as a delete in C* (or empty collection) - class ChainedTypeConverter[T] extends NullableTypeConverter[T]
Chains together several converters converting to the same type.
Chains together several converters converting to the same type. This way you can extend functionality of any converter to support new input types.
- trait CollectionColumnType[T] extends ColumnType[T]
- trait ColumnType[T] extends Serializable
Serializable representation of column data type.
- case class ListType[T](elemType: ColumnType[T], isFrozen: Boolean = false) extends CollectionColumnType[Vector[T]] with Product with Serializable
- case class MapType[K, V](keyType: ColumnType[K], valueType: ColumnType[V], isFrozen: Boolean = false) extends CollectionColumnType[Map[K, V]] with Product with Serializable
- trait NullableTypeConverter[T] extends TypeConverter[T]
Handles nullable types and converts any null to null.
- trait PrimitiveColumnType[T] extends ColumnType[T]
- case class SetType[T](elemType: ColumnType[T], isFrozen: Boolean = false) extends CollectionColumnType[Set[T]] with Product with Serializable
- case class TupleFieldDef(index: Int, columnType: ColumnType[_]) extends FieldDef with Product with Serializable
- case class TupleType(componentTypes: TupleFieldDef*) extends StructDef with ColumnType[TupleValue] with Product with Serializable
A type representing typed tuples.
A type representing typed tuples. A tuple consists of a sequence of values. Every value is identified by its 0-based position. Every value can be of a different type.
- class TypeConversionException extends Exception
- trait TypeConverter[T] extends Serializable
Machinery for converting objects of any type received from Cassandra into objects of Scala types.
Machinery for converting objects of any type received from Cassandra into objects of Scala types. Every converter knows how to convert object to one type. See
TypeConvertercompanion object for a list of available converters. - case class UDTFieldDef(columnName: String, columnType: ColumnType[_]) extends FieldDef with Product with Serializable
A Cassandra user defined type field metadata.
A Cassandra user defined type field metadata. It consists of a name and an associated column type. The word
columninstead offieldis used in member names because we want to treat UDT field entries in the same way as table columns, so that they are mappable to case classes. This is also the reason why this class extendsFieldDef - case class UserDefinedType(name: String, columns: IndexedSeq[UDTFieldDef], isFrozen: Boolean = false) extends StructDef with ColumnType[UDTValue] with Product with Serializable
A Cassandra user defined type metadata.
A Cassandra user defined type metadata. A UDT consists of a sequence of ordered fields, called
columns. - case class VectorType[T](elemType: ColumnType[T], dimension: Int) extends ColumnType[Seq[T]] with Product with Serializable
Value Members
- def unlazify[T](seq: IndexedSeq[T]): IndexedSeq[T]
Makes sure the sequence does not contain any lazy transformations.
Makes sure the sequence does not contain any lazy transformations. This guarantees that if T is Serializable, the collection is Serializable.
- case object AsciiType extends PrimitiveColumnType[String] with Product with Serializable
- case object BigIntType extends PrimitiveColumnType[Long] with Product with Serializable
- case object BlobType extends PrimitiveColumnType[ByteBuffer] with Product with Serializable
- case object BooleanType extends PrimitiveColumnType[Boolean] with Product with Serializable
- object CanBuildFrom extends Serializable
- object CassandraOption extends Serializable
- object ColumnType extends Serializable
- case object CounterType extends PrimitiveColumnType[Long] with Product with Serializable
- case object DateRangeType extends PrimitiveColumnType[DateRange] with Product with Serializable
- case object DateType extends PrimitiveColumnType[LocalDate] with Product with Serializable
- case object DecimalType extends PrimitiveColumnType[BigDecimal] with Product with Serializable
- case object DoubleType extends PrimitiveColumnType[Double] with Product with Serializable
- case object DurationType extends PrimitiveColumnType[CqlDuration] with Product with Serializable
- case object FloatType extends PrimitiveColumnType[Float] with Product with Serializable
- case object InetType extends PrimitiveColumnType[InetAddress] with Product with Serializable
- case object IntType extends PrimitiveColumnType[Int] with Product with Serializable
- case object LineStringType extends PrimitiveColumnType[LineString] with Product with Serializable
- case object PointType extends PrimitiveColumnType[Point] with Product with Serializable
- case object PolygonType extends PrimitiveColumnType[Polygon] with Product with Serializable
- case object SmallIntType extends PrimitiveColumnType[Short] with Product with Serializable
- case object TextType extends PrimitiveColumnType[String] with Product with Serializable
- case object TimeType extends PrimitiveColumnType[LocalTime] with Product with Serializable
- case object TimeUUIDType extends PrimitiveColumnType[UUID] with Product with Serializable
- object TimestampFormatter
Formats timestamps and dates using CQL timestamp format
yyyy-MM-dd HH:mm:ssZ - object TimestampParser
Parses following formats to Date
Parses following formats to Date
yyyy-MM-ddyyyy-MM-ddXyyyy-MM-dd HH:mmyyyy-MM-dd HH:mmXyyyy-MM-dd HH:mm:ssyyyy-MM-dd HH:mm:ssXyyyy-MM-dd HH:mm:ss.Syyyy-MM-dd HH:mm:ss.SXyyyy-MM-dd HH:mm:ss.SSyyyy-MM-dd HH:mm:ss.SSXyyyy-MM-dd HH:mm:ss.SSSyyyy-MM-dd HH:mm:ss.SSSXyyyy-MM-dd'T'HH:mmyyyy-MM-dd'T'HH:mmXyyyy-MM-dd'T'HH:mm:ssyyyy-MM-dd'T'HH:mm:ssXyyyy-MM-dd'T'HH:mm:ss.Syyyy-MM-dd'T'HH:mm:ss.SXyyyy-MM-dd'T'HH:mm:ss.SSyyyy-MM-dd'T'HH:mm:ss.SSXyyyy-MM-dd'T'HH:mm:ss.SSSyyyy-MM-dd'T'HH:mm:ss.SSSX
Waring! If time zone is not specified, the value is parsed to date in the default time zone.
- case object TimestampType extends PrimitiveColumnType[Instant] with Product with Serializable
- case object TinyIntType extends PrimitiveColumnType[Byte] with Product with Serializable
- object TupleType extends Serializable
- object TypeConverter extends Serializable
Defines a set of converters and implicit functions used to look up an appropriate converter for a desired type.
Defines a set of converters and implicit functions used to look up an appropriate converter for a desired type. Thanks to implicit method lookup, it is possible to implement a generic method
CassandraRow#get, which picks up the right converter basing solely on its type argument. - case object UUIDType extends PrimitiveColumnType[UUID] with Product with Serializable
- object Unset extends Serializable
An object representing a column which will be skipped on insert.
An object representing a column which will be skipped on insert.
- Attributes
- protected[connector]
- object UserDefinedType extends Serializable
- case object VarCharType extends PrimitiveColumnType[String] with Product with Serializable
- case object VarIntType extends PrimitiveColumnType[BigInt] with Product with Serializable