com.datastax.spark.connector.types

TupleType

Related Docs: object TupleType | package types

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TupleType(componentTypes: TupleFieldDef*)

Type Members

  1. type Column = TupleFieldDef

    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

Value Members

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

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

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

    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)

    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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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
  9. 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
  10. def 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
  11. lazy val columnRefs: IndexedSeq[ColumnRef]

    References to the columns

    References to the columns

    Definition Classes
    StructDef
  12. def 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
  13. def columns: IndexedSeq[TupleFieldDef]

    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*

  15. 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
    TupleTypeColumnType
  16. 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
  17. def cqlTypeName: String

    Name of the CQL type.

    Name of the CQL type. Useful for CQL generation.

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

    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
  19. def ensuring(cond: (TupleType) ⇒ Boolean): TupleType

    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: Boolean, msg: ⇒ Any): TupleType

    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): TupleType

    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. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. def finalize(): Unit

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

    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()
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def isCollection: Boolean

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

    Definition Classes
    Any
  28. 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
  29. def 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
    TupleTypeStructDef
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def newTuple(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.

  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def scalaTypeName: String

    Name of the Scala type.

    Name of the Scala type. Useful for source generation.

    Definition Classes
    ColumnType
  35. 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
    TupleTypeColumnType
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. final def wait(): Unit

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

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

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

    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