Class/Object

com.datastax.spark.connector.types

TupleType

Related Docs: object TupleType | package types

Permalink

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.

Linear Supertypes
Product, Equals, ColumnType[TupleValue], StructDef, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TupleType
  2. Product
  3. Equals
  4. ColumnType
  5. StructDef
  6. Serializable
  7. Serializable
  8. AnyRef
  9. 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

Instance Constructors

  1. new TupleType(componentTypes: TupleFieldDef*)

    Permalink

Type Members

  1. type Column = TupleFieldDef

    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.

    Definition Classes
    TupleTypeStructDef
  2. type ValueRepr = TupleValue

    Permalink

    Type of the data described by this struct

    Type of the data described by this struct

    Definition Classes
    TupleTypeStructDef

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 TupleType to any2stringadd[TupleType] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TupleType, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TupleType to ArrowAssoc[TupleType] 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.

    Definition Classes
    StructDef
  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.

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

    Permalink

    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
  11. lazy val columnRefs: IndexedSeq[ColumnRef]

    Permalink

    References to the columns

    References to the columns

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

    Permalink

    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
  13. val columns: IndexedSeq[TupleFieldDef]

    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.

    Definition Classes
    TupleTypeStructDef
  14. val componentTypes: TupleFieldDef*

    Permalink
  15. def converterToCassandra: TypeConverter[TupleValue]

    Permalink

    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
    TupleTypeColumnType
  16. def converterToCassandra(componentConverters: IndexedSeq[TypeConverter[_ <: AnyRef]]): TypeConverter[TupleValue]

    Permalink
  17. lazy val converterToScala: TypeConverter[TupleValue]

    Permalink

    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
  18. def cqlTypeName: String

    Permalink

    Name of the CQL type.

    Name of the CQL type. Useful for CQL generation.

    Definition Classes
    TupleTypeColumnType
  19. def ensuring(cond: (TupleType) ⇒ Boolean, msg: ⇒ Any): TupleType

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def isCollection: Boolean

    Permalink
    Definition Classes
    TupleTypeColumnType
  28. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Returns the columns that are not present in the structure.

    Returns the columns that are not present in the structure.

    Definition Classes
    StructDef
  30. 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.

    Definition Classes
    TupleTypeStructDef
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def newInstance(componentValues: Any*): TupleValue

    Permalink

    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
    TupleTypeStructDef
  33. def newInstance(componentConverters: IndexedSeq[TypeConverter[_ <: AnyRef]])(componentValues: Any*): TupleValue

    Permalink

    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.

  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. def scalaTypeName: String

    Permalink

    Name of the Scala type.

    Name of the Scala type. Useful for source generation.

    Definition Classes
    ColumnType
  37. def scalaTypeTag: scala.reflect.api.JavaUniverse.TypeTag[TupleValue]

    Permalink

    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
    TupleTypeColumnType
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. final def wait(): Unit

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

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

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

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

Inherited from Product

Inherited from Equals

Inherited from ColumnType[TupleValue]

Inherited from StructDef

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped