public class CassandraJavaRDD<R>
extends org.apache.spark.api.java.JavaRDD<R>
CassandraRDD
. Makes the invocation of
Cassandra related methods easy in Java.Constructor and Description |
---|
CassandraJavaRDD(com.datastax.spark.connector.rdd.CassandraRDD<R> rdd,
java.lang.Class<R> clazz) |
Modifier and Type | Method and Description |
---|---|
scala.reflect.ClassTag<R> |
classTag() |
com.datastax.spark.connector.rdd.CassandraRDD<R> |
rdd() |
CassandraJavaRDD<R> |
select(java.lang.String... columnNames)
Narrows down the selected set of columns.
|
java.lang.String[] |
selectedColumnNames()
Returns the names of columns to be selected from the table.
|
CassandraJavaRDD<R> |
where(java.lang.String cqlWhereClause,
java.lang.Object... args)
Adds a CQL
WHERE predicate(s) to the query. |
aggregate, cache, cartesian, checkpoint, coalesce, coalesce, collect, collectPartitions, context, count, countApprox, countApprox, countApproxDistinct, countApproxDistinct$default$1, countByValue, countByValueApprox, countByValueApprox, distinct, distinct, filter, first, flatMap, flatMap, flatMap, fold, foreach, fromRDD, getCheckpointFile, getStorageLevel, glom, groupBy, groupBy, id, isCheckpointed, iterator, keyBy, map, map, map, mapPartitions, mapPartitions, mapPartitions, mapPartitionsWithIndex, mapPartitionsWithIndex$default$2, name, persist, pipe, pipe, pipe, reduce, repartition, sample, saveAsObjectFile, saveAsTextFile, saveAsTextFile, setName, splits, subtract, subtract, subtract, take, takeOrdered, takeOrdered, takeSample, toArray, toDebugString, top, top, toRDD, toString, union, unpersist, unpersist, wrapRDD, zip, zipPartitions
public scala.reflect.ClassTag<R> classTag()
public com.datastax.spark.connector.rdd.CassandraRDD<R> rdd()
public CassandraJavaRDD<R> select(java.lang.String... columnNames)
select
call, it is not possible to
add it back.public CassandraJavaRDD<R> where(java.lang.String cqlWhereClause, java.lang.Object... args)
WHERE
predicate(s) to the query.
Useful for leveraging secondary indexes in Cassandra.
Implicitly adds an ALLOW FILTERING
clause to the WHERE
clause, however beware that some predicates
might be rejected by Cassandra, particularly in cases when they filter on an unindexed, non-clustering column.public java.lang.String[] selectedColumnNames()