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.
- Alphabetic
- By Inheritance
- StructDef
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type Column <: FieldDef
Allows to specify concrete type of column in subclasses, so that
columnsandcolumnByNamemembers return concrete types.Allows to specify concrete type of column in subclasses, so that
columnsandcolumnByNamemembers return concrete types. Columns in tables may carry more information than columns in user defined types. - abstract type ValueRepr <: AnyRef
Type of the data described by this struct
Abstract Value Members
- abstract val columns: IndexedSeq[Column]
Sequence of column definitions in this data structure.
Sequence of column definitions in this data structure. The order of the columns is implementation-defined.
- abstract 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.
- abstract def newInstance(columnValues: Any*): ValueRepr
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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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.
- 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.
- lazy val columnNames: IndexedSeq[String]
Names of the columns, in the same order as column definitions.
- lazy val columnRefs: IndexedSeq[ColumnRef]
References to the columns
- lazy val columnTypes: IndexedSeq[ColumnType[_]]
Types of the columns, in the same order as column names and column definitions.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def missingColumns(columnsToCheck: Seq[ColumnRef]): Seq[ColumnRef]
Returns the columns that are not present in the structure.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)