Creates a new relation for a cassandra table given table, keyspace, cluster, push_down and schema as parameters.
Creates a new relation for a cassandra table given table, keyspace, cluster, push_down and schema as parameters. It saves the data to the Cassandra table depends on SaveMode
Creates a new relation for a cassandra table given table, keyspace, cluster and push_down as parameters and explicitly pass schema StructType as a parameter
Creates a new relation for a cassandra table given table, keyspace, cluster and push_down as parameters and explicitly pass schema StructType as a parameter
Creates a new relation for a cassandra table.
Creates a new relation for a cassandra table. The parameters map stores table level data. User can specify vale for following keys
table -- table name, required keyspace -- keyspace name, required cluster -- cluster name, optional, default name is "default" pushdown -- true/false, optional, default is true Cassandra connection settings -- optional, e.g. spark.cassandra.connection.timeoutMS Cassandra Read Settings -- optional, e.g. spark.cassandra.input.fetch.sizeInRows Cassandra Write settings -- optional, e.g. spark.cassandra.output.consistency.level
When push_down is true, some filters are pushed down to CQL.
Cassandra data source extends RelationProvider, SchemaRelationProvider and CreatableRelationProvider. It's used internally by Spark SQL to create Relation for a table which specifies the Cassandra data source e.g.
CREATE TEMPORARY TABLE tmpTable USING org.apache.spark.sql.cassandra OPTIONS ( table "table", keyspace "keyspace", cluster "test_cluster", pushdown "true", spark.cassandra.input.fetch.sizeInRows "10", spark.cassandra.output.consistency.level "ONE", spark.cassandra.connection.timeoutMS "1000" )