Class/Object

com.datastax.spark.connector.writer

TableWriter

Related Docs: object TableWriter | package writer

Permalink

class TableWriter[T] extends Serializable with Logging

Writes RDD data into given Cassandra table. Individual column values are extracted from RDD objects using given RowWriter Then, data are inserted into Cassandra with batches of CQL INSERT statements. Each RDD partition is processed by a single thread.

Linear Supertypes
Logging, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TableWriter
  2. Logging
  3. Serializable
  4. Serializable
  5. AnyRef
  6. 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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from TableWriter[T] to ArrowAssoc[TableWriter[T]] 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 batchRoutingKey(session: Session, routingKeyGenerator: RoutingKeyGenerator)(bs: BoundStatement): Any

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val columnNames: Seq[String]

    Permalink
  10. val columns: Seq[ColumnDef]

    Permalink
  11. def delete(columns: ColumnSelector)(taskContext: TaskContext, data: Iterator[T]): Unit

    Permalink

    Cql DELETE statement

    Cql DELETE statement

    columns

    columns to delete, the row will be deleted completely if the list is empty

    data

    primary key values to select delete rows

  12. def ensuring(cond: (TableWriter[T]) ⇒ Boolean, msg: ⇒ Any): TableWriter[T]

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def insert(taskContext: TaskContext, data: Iterator[T]): Unit

    Permalink

    Write data with Cql INSERT statement

  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. val keyspaceName: String

    Permalink
  26. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  37. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  38. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  42. val tableName: String

    Permalink
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def update(taskContext: TaskContext, data: Iterator[T]): Unit

    Permalink

    Write data with Cql UPDATE statement

  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. def write(taskContext: TaskContext, data: Iterator[T]): Unit

    Permalink

    Main entry point if counter or collection column need to be updated Cql UPDATE command will be used INSERT otherwise

  49. def [B](y: B): (TableWriter[T], B)

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

Inherited from Logging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TableWriter[T] to any2stringadd[TableWriter[T]]

Inherited by implicit conversion StringFormat from TableWriter[T] to StringFormat[TableWriter[T]]

Inherited by implicit conversion Ensuring from TableWriter[T] to Ensuring[TableWriter[T]]

Inherited by implicit conversion ArrowAssoc from TableWriter[T] to ArrowAssoc[TableWriter[T]]

Ungrouped