Packages

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 UDT consists of a sequence of ordered fields, called columns.

Linear Supertypes
Product, Equals, ColumnType[UDTValue], StructDef, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UserDefinedType
  2. Product
  3. Equals
  4. ColumnType
  5. StructDef
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UserDefinedType(name: String, columns: IndexedSeq[UDTFieldDef], isFrozen: Boolean = false)

Type Members

  1. type Column = FieldDef

    Allows to specify concrete type of column in subclasses, so that columns and columnByName members return concrete types.

    Allows to specify concrete type of column in subclasses, so that columns and columnByName members return concrete types. Columns in tables may carry more information than columns in user defined types.

    Definition Classes
    UserDefinedTypeStructDef
  2. type ValueRepr = UDTValue

    Type of the data described by this struct

    Type of the data described by this struct

    Definition Classes
    UserDefinedTypeStructDef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. def columnByIndex(index: Int): Column

    For quickly finding a column definition by index.

    For quickly finding a column definition by index. If column is not found, throws NoSuchElementException with information about the requested index of the column and name of the structure.

    Definition Classes
    StructDef
  7. def columnByName: Map[String, Column]

    For quickly finding a column definition by name.

    For quickly finding a column definition by name. If column is not found, throws NoSuchElementException with information about the name of the column and name of the structure.

    Definition Classes
    StructDef
  8. lazy val columnNames: IndexedSeq[String]

    Names of the columns, in the same order as column definitions.

    Names of the columns, in the same order as column definitions.

    Definition Classes
    StructDef
  9. lazy val columnRefs: IndexedSeq[ColumnRef]

    References to the columns

    References to the columns

    Definition Classes
    StructDef
  10. lazy val columnTypes: IndexedSeq[ColumnType[_]]

    Types of the columns, in the same order as column names and column definitions.

    Types of the columns, in the same order as column names and column definitions.

    Definition Classes
    StructDef
  11. val columns: IndexedSeq[UDTFieldDef]

    Sequence of column definitions in this data structure.

    Sequence of column definitions in this data structure. The order of the columns is implementation-defined.

    Definition Classes
    UserDefinedTypeStructDef
  12. def converterToCassandra: NullableTypeConverter[UDTValue]

    Returns a converter that converts this column to type that can be saved by TableWriter.

    Returns a converter that converts this column to type that can be saved by TableWriter.

    Definition Classes
    UserDefinedTypeColumnType
  13. lazy val converterToScala: TypeConverter[UDTValue]

    Returns a converter that converts values to the Scala type associated with this column.

    Returns a converter that converts values to the Scala type associated with this column.

    Definition Classes
    ColumnType
  14. def cqlTypeName: String

    Name of the CQL type.

    Name of the CQL type. Useful for CQL generation.

    Definition Classes
    UserDefinedTypeColumnType
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. val fieldConvereters: IndexedSeq[TypeConverter[_ <: AnyRef]]
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def isCollection: Boolean
    Definition Classes
    UserDefinedTypeColumnType
  19. val isFrozen: Boolean
    Definition Classes
    UserDefinedTypeColumnType
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isMultiCell: Boolean
    Definition Classes
    UserDefinedTypeColumnType
  22. def missingColumns(columnsToCheck: Seq[ColumnRef]): Seq[ColumnRef]

    Returns the columns that are not present in the structure.

    Returns the columns that are not present in the structure.

    Definition Classes
    StructDef
  23. val name: String

    Human-readable name for easy identification of this structure.

    Human-readable name for easy identification of this structure. Used in the error message when the column is not found. E.g. a table name or a type name.

    Definition Classes
    UserDefinedTypeStructDef
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def newInstance(columnValues: Any*): UDTValue

    Creates new instance of this struct.

    Creates new instance of this struct. Column values must be given in the same order as columnNames

    Definition Classes
    UserDefinedTypeStructDef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def scalaTypeName: String

    Name of the Scala type.

    Name of the Scala type. Useful for source generation.

    Definition Classes
    ColumnType
  29. def scalaTypeTag: scala.reflect.api.JavaUniverse.TypeTag[UDTValue]

    Returns the TypeTag of the Scala type recommended to represent values of this column.

    Returns the TypeTag of the Scala type recommended to represent values of this column.

    Definition Classes
    UserDefinedTypeColumnType
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Product

Inherited from Equals

Inherited from ColumnType[UDTValue]

Inherited from StructDef

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped