case class TupleType(componentTypes: TupleFieldDef*) extends StructDef with ColumnType[TupleValue] with Product with Serializable
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.
- Alphabetic
- By Inheritance
- TupleType
- Product
- Equals
- ColumnType
- StructDef
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TupleType(componentTypes: TupleFieldDef*)
Type Members
- type Column = TupleFieldDef
Allows to specify concrete type of column in subclasses, so that
columnsandcolumnByNamemembers return concrete types. - type ValueRepr = TupleValue
Type of the data described by this struct
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.
- Definition Classes
- StructDef
- 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
- 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
- lazy val columnRefs: IndexedSeq[ColumnRef]
References to the columns
References to the columns
- Definition Classes
- StructDef
- 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
- val columns: IndexedSeq[TupleFieldDef]
Sequence of column definitions in this data structure.
- val componentTypes: TupleFieldDef*
- def converterToCassandra: TypeConverter[TupleValue]
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
- TupleType → ColumnType
- def converterToCassandra(componentConverters: IndexedSeq[TypeConverter[_ <: AnyRef]]): TypeConverter[TupleValue]
- lazy val converterToScala: TypeConverter[TupleValue]
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
- def cqlTypeName: String
Name of the CQL type.
Name of the CQL type. Useful for CQL generation.
- Definition Classes
- TupleType → ColumnType
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def isCollection: Boolean
- Definition Classes
- TupleType → ColumnType
- def isFrozen: Boolean
- Definition Classes
- ColumnType
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMultiCell: Boolean
- Definition Classes
- ColumnType
- 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
- val name: String
Human-readable name for easy identification of this structure.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newInstance(componentValues: Any*): TupleValue
Creates new instance of this struct.
- def newInstance(componentConverters: IndexedSeq[TypeConverter[_ <: AnyRef]])(componentValues: Any*): TupleValue
Creates new tuple from components converted each to the type determined by an appropriate componentType.
Creates new tuple from components converted each to the type determined by an appropriate componentType. Throws IllegalArgumentException if the number of components does not match the number of components in the tuple type.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def scalaTypeName: String
Name of the Scala type.
Name of the Scala type. Useful for source generation.
- Definition Classes
- ColumnType
- def scalaTypeTag: scala.reflect.api.JavaUniverse.TypeTag[TupleValue]
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
- TupleType → ColumnType
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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)