Trait

com.datastax.spark.connector.cql

StructDef

Related Doc: package cql

Permalink

trait StructDef extends Serializable

Cassandra structure that contains columnar information, e.g. a table or a user defined type. This trait allows ColumnMapper to work on tables and user defined types. Cassandra tables and user defined types are similar in a way data are extracted from them, therefore a common interface to describe their metadata is handy.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StructDef
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Column <: FieldDef

    Permalink

    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.

  2. abstract type ValueRepr <: AnyRef

    Permalink

    Type of the data described by this struct

Abstract Value Members

  1. abstract val columns: IndexedSeq[Column]

    Permalink

    Sequence of column definitions in this data structure.

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

  2. abstract val name: String

    Permalink

    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.

  3. abstract def newInstance(columnValues: Any*): ValueRepr

    Permalink

    Creates new instance of this struct.

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to any2stringadd[StructDef] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (StructDef, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to ArrowAssoc[StructDef] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def columnByIndex(index: Int): Column

    Permalink

    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.

  9. def columnByName: Map[String, Column]

    Permalink

    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.

  10. lazy val columnNames: IndexedSeq[String]

    Permalink

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

  11. lazy val columnRefs: IndexedSeq[ColumnRef]

    Permalink

    References to the columns

  12. lazy val columnTypes: IndexedSeq[ColumnType[_]]

    Permalink

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

  13. def ensuring(cond: (StructDef) ⇒ Boolean, msg: ⇒ Any): StructDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to Ensuring[StructDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (StructDef) ⇒ Boolean): StructDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to Ensuring[StructDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): StructDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to Ensuring[StructDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): StructDef

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to Ensuring[StructDef] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to StringFormat[StructDef] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def missingColumns(columnsToCheck: Seq[ColumnRef]): Seq[ColumnRef]

    Permalink

    Returns the columns that are not present in the structure.

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def [B](y: B): (StructDef, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from StructDef to ArrowAssoc[StructDef] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from StructDef to any2stringadd[StructDef]

Inherited by implicit conversion StringFormat from StructDef to StringFormat[StructDef]

Inherited by implicit conversion Ensuring from StructDef to Ensuring[StructDef]

Inherited by implicit conversion ArrowAssoc from StructDef to ArrowAssoc[StructDef]

Ungrouped