org.apache.spark.sql.cassandra.CassandraPredicateRules.scala Maven / Gradle / Ivy
The newest version!
package org.apache.spark.sql.cassandra
import com.datastax.spark.connector.cql.TableDef
import org.apache.spark.sql.sources.Filter
import org.apache.spark.SparkConf
case class AnalyzedPredicates(
handledByCassandra: Set[Filter],
handledBySpark: Set[Filter] ){
override def toString(): String = {
s"""C* Filters: [${handledByCassandra.mkString(", ")}]
|Spark Filters [${handledBySpark.mkString(", ")}]""".stripMargin
}
}
trait CassandraPredicateRules{
def apply(predicates: AnalyzedPredicates, tableDef: TableDef, conf: SparkConf): AnalyzedPredicates
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy