Package

com.datastax.spark.connector

types

Permalink

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. types
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait CanBuildFrom[-Elem, To] extends Serializable

    Permalink

    Serves the same purpose as standard Scala CanBuildFrom, however this one is Serializable.

  2. sealed trait CassandraOption[+A] extends Product with Serializable

    Permalink

    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)

  3. class ChainedTypeConverter[T] extends NullableTypeConverter[T]

    Permalink

    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.

  4. trait CollectionColumnType[T] extends ColumnType[T]

    Permalink
  5. trait ColumnType[T] extends Serializable

    Permalink

    Serializable representation of column data type.

  6. trait CustomDriverConverter extends AnyRef

    Permalink
  7. case class ListType[T](elemType: ColumnType[T]) extends CollectionColumnType[Vector[T]] with Product with Serializable

    Permalink
  8. case class MapType[K, V](keyType: ColumnType[K], valueType: ColumnType[V]) extends CollectionColumnType[Map[K, V]] with Product with Serializable

    Permalink
  9. trait NullableTypeConverter[T] extends TypeConverter[T]

    Permalink

    Handles nullable types and converts any null to null.

  10. trait PrimitiveColumnType[T] extends ColumnType[T]

    Permalink
  11. case class SetType[T](elemType: ColumnType[T]) extends CollectionColumnType[Set[T]] with Product with Serializable

    Permalink
  12. case class TupleFieldDef(index: Int, columnType: ColumnType[_]) extends FieldDef with Product with Serializable

    Permalink
  13. case class TupleType(componentTypes: TupleFieldDef*) extends StructDef with ColumnType[TupleValue] with Product with Serializable

    Permalink

    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.

  14. class TypeConversionException extends Exception

    Permalink
  15. trait TypeConverter[T] extends Serializable

    Permalink

    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 TypeConverter companion object for a list of available converters.

  16. case class UDTFieldDef(columnName: String, columnType: ColumnType[_]) extends FieldDef with Product with Serializable

    Permalink

    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 column instead of field is 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 extends FieldDef

  17. case class UserDefinedType(name: String, columns: IndexedSeq[UDTFieldDef]) extends StructDef with ColumnType[UDTValue] with Product with Serializable

    Permalink

    A Cassandra user defined type metadata.

    A Cassandra user defined type metadata. A UDT consists of a sequence of ordered fields, called columns.

Value Members

  1. object AsciiType extends PrimitiveColumnType[String] with Product with Serializable

    Permalink
  2. object BigIntType extends PrimitiveColumnType[Long] with Product with Serializable

    Permalink
  3. object BlobType extends PrimitiveColumnType[ByteBuffer] with Product with Serializable

    Permalink
  4. object BooleanType extends PrimitiveColumnType[Boolean] with Product with Serializable

    Permalink
  5. object CanBuildFrom extends Serializable

    Permalink
  6. object CassandraOption extends Serializable

    Permalink
  7. object ColumnType extends Serializable

    Permalink
  8. object ColumnTypeConf

    Permalink
  9. object CounterType extends PrimitiveColumnType[Long] with Product with Serializable

    Permalink
  10. object DateType extends PrimitiveColumnType[Int] with Product with Serializable

    Permalink
  11. object DecimalType extends PrimitiveColumnType[BigDecimal] with Product with Serializable

    Permalink
  12. object DoubleType extends PrimitiveColumnType[Double] with Product with Serializable

    Permalink
  13. object FloatType extends PrimitiveColumnType[Float] with Product with Serializable

    Permalink
  14. object InetType extends PrimitiveColumnType[InetAddress] with Product with Serializable

    Permalink
  15. object IntType extends PrimitiveColumnType[Int] with Product with Serializable

    Permalink
  16. object SmallIntType extends PrimitiveColumnType[Short] with Product with Serializable

    Permalink
  17. object TextType extends PrimitiveColumnType[String] with Product with Serializable

    Permalink
  18. object TimeType extends PrimitiveColumnType[Long] with Product with Serializable

    Permalink
  19. object TimeUUIDType extends PrimitiveColumnType[UUID] with Product with Serializable

    Permalink
  20. object TimestampFormatter

    Permalink

    Formats timestamps and dates using CQL timestamp format yyyy-MM-dd HH:mm:ssZ

  21. object TimestampParser

    Permalink

    Parses CQL timestamps.

    Parses CQL timestamps.

    Supported formats:

    • yyyy-MM-dd HH:mm
    • yyyy-MM-dd HH:mmZ
    • yyyy-MM-dd HH:mm:ss
    • yyyy-MM-dd HH:mm:ssZ
    • yyyy-MM-dd HH:mm:ss.SSS
    • yyyy-MM-dd HH:mm:ss.SSSZ
    • yyyy-MM-dd'T'HH:mm
    • yyyy-MM-dd'T'HH:mmZ
    • yyyy-MM-dd'T'HH:mm:ss
    • yyyy-MM-dd'T'HH:mm:ssZ
    • yyyy-MM-dd'T'HH:mm:ss.SSS
    • yyyy-MM-dd'T'HH:mm:ss.SSSZ
    • yyyy-MM-dd
    • yyyy-MM-ddZ
  22. object TimestampType extends PrimitiveColumnType[Date] with Product with Serializable

    Permalink
  23. object TinyIntType extends PrimitiveColumnType[Byte] with Product with Serializable

    Permalink
  24. object TupleType extends Serializable

    Permalink
  25. object TypeConverter extends Serializable

    Permalink

    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.

  26. object UUIDType extends PrimitiveColumnType[UUID] with Product with Serializable

    Permalink
  27. object Unset extends Serializable

    Permalink

    An object representing a column which will be skipped on insert.

    An object representing a column which will be skipped on insert.

    Attributes
    protected[com.datastax.spark.connector]
  28. object UserDefinedType extends Serializable

    Permalink
  29. object VarCharType extends PrimitiveColumnType[String] with Product with Serializable

    Permalink
  30. object VarIntType extends PrimitiveColumnType[BigInt] with Product with Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped