com.datastax.spark.connector

cql

package cql

Contains a cql.CassandraConnector object which is used to connect to a Cassandra cluster and to send CQL statements to it. CassandraConnector provides a Scala-idiomatic way of working with Cluster and Session object and takes care of connection pooling and proper resource disposal.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. cql
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait AuthConf extends Serializable

    Stores credentials used to authenticate to a Cassandra cluster and uses them to configure a Cassandra connection.

  2. trait AuthConfFactory extends AnyRef

    Obtains authentication configuration by reading SparkConf object.

  3. trait CassandraConnectionFactory extends Serializable

    Creates both native and Thrift connections to Cassandra.

  4. class CassandraConnector extends Serializable with Logging

    Provides and manages connections to Cassandra.

  5. case class CassandraConnectorConf(hosts: Set[InetAddress], port: Int = ..., authConf: AuthConf = NoAuthConf, localDC: Option[String] = scala.None, keepAliveMillis: Int = ..., minReconnectionDelayMillis: Int = ..., maxReconnectionDelayMillis: Int = ..., compression: Compression = ..., queryRetryCount: Int = ..., connectTimeoutMillis: Int = ..., readTimeoutMillis: Int = ..., connectionFactory: CassandraConnectionFactory = DefaultConnectionFactory, cassandraSSLConf: CassandraSSLConf = ..., queryRetryDelay: RetryDelayConf = ...) extends Product with Serializable

    Stores configuration of a connection to Cassandra.

  6. case class ClusteringColumn(index: Int) extends ColumnRole with Product with Serializable

  7. case class ColumnDef(columnName: String, columnRole: ColumnRole, columnType: ColumnType[_], indexed: Boolean = false) extends FieldDef with Product with Serializable

    A Cassandra column metadata that can be serialized.

  8. sealed trait ColumnRole extends AnyRef

  9. trait FieldDef extends Serializable

    Abstract column / field definition.

  10. case class KeyspaceDef(keyspaceName: String, tables: Set[TableDef]) extends Product with Serializable

    A Cassandra keyspace metadata that can be serialized.

  11. class LocalNodeFirstLoadBalancingPolicy extends LoadBalancingPolicy with Logging

    Selects local node first and then nodes in local DC in random order.

  12. class MultipleRetryPolicy extends RetryPolicy

    Always retries with the same CL, constant number of times, regardless of circumstances

  13. case class PasswordAuthConf(user: String, password: String) extends AuthConf with Product with Serializable

    Performs plain-text password authentication.

  14. class RefCountMap[T] extends AnyRef

    Atomically counts references to objects of any type

  15. final class RefCountedCache[K, V] extends AnyRef

    A lockless cache that caches values for multiple users and destroys them once all users release them.

  16. case class Schema(clusterName: String, keyspaces: Set[KeyspaceDef]) extends Product with Serializable

  17. class SessionProxy extends InvocationHandler

    Wraps a Session and intercepts:

  18. trait StructDef extends Serializable

    Cassandra structure that contains columnar information, e.

  19. case class TableDef(keyspaceName: String, tableName: String, partitionKey: Seq[ColumnDef], clusteringColumns: Seq[ColumnDef], regularColumns: Seq[ColumnDef]) extends StructDef with Product with Serializable

    A Cassandra table metadata that can be serialized.

Value Members

  1. object AuthConf extends Serializable

    Entry point for obtaining AuthConf object from SparkConf, used when establishing connections to Cassandra.

  2. object AuthConfFactory

  3. object CassandraConnectionFactory extends Serializable

    Entry point for obtaining CassandraConnectionFactory object from SparkConf, used when establishing connections to Cassandra.

  4. object CassandraConnector extends Logging with Serializable

  5. object CassandraConnectorConf extends Logging with Serializable

    A factory for CassandraConnectorConf objects.

  6. object ColumnDef extends Serializable

  7. object DefaultAuthConfFactory extends AuthConfFactory

    Default AuthConfFactory that supports no authentication or password authentication.

  8. object DefaultConnectionFactory extends CassandraConnectionFactory

    Performs no authentication.

  9. object LocalNodeFirstLoadBalancingPolicy

  10. object NoAuthConf extends AuthConf with Product with Serializable

    Performs no authentication.

  11. object PartitionKeyColumn extends ColumnRole with Product with Serializable

  12. object PreparedStatementCache extends Logging

    Caches prepared statements so they are not prepared multiple times by different threads.

  13. object RegularColumn extends ColumnRole with Product with Serializable

  14. object Schema extends Logging with Serializable

  15. object SessionProxy

  16. object StaticColumn extends ColumnRole with Product with Serializable

  17. object TableDef extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped