org.apache.spark.sql.cassandra
Executes SQL query against Cassandra and returns DataFrame representing the result.
A catalyst metadata catalog that points to Cassandra.
A catalyst metadata catalog that points to Cassandra.
Get current used cluster name
Returns keyspace/database set previously by setKeyspace or throws IllegalStateException if keyspace has not been set yet.
Modified Catalyst planner that does Cassandra-specific predicate pushdown
Modified Catalyst planner that does Cassandra-specific predicate pushdown
Set current used cluster name
Set current used database name.
Set current used database name. Database is equivalent to keyspace
Set default Cassandra keyspace to be used when accessing tables with unqualified names.
Delegates to cassandraSql
Delegates to cassandraSql
(Since version 1.3.0) use createDataFrame
(Since version 1.3.0) use createDataFrame
(Since version 1.3.0) use createDataFrame
(Since version 1.3.0) use createDataFrame
(Since version 1.4.0) use read.jdbc()
(Since version 1.4.0) use read.jdbc()
(Since version 1.4.0) use read.jdbc()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.json()
(Since version 1.4.0) Use read.format(source).schema(schema).options(options).load()
(Since version 1.4.0) Use read.format(source).schema(schema).options(options).load()
(Since version 1.4.0) Use read.format(source).options(options).load()
(Since version 1.4.0) Use read.format(source).options(options).load()
(Since version 1.4.0) Use read.format(source).load(path)
(Since version 1.4.0) Use read.load(path)
(Since version 1.4.0) Use read.parquet()
Allows to execute SQL queries against Cassandra and access results as
SchemaRDD
collections. Predicate pushdown to Cassandra is supported.Example: