c

org.apache.spark.sql.cassandra

SolrPredicateRules

class SolrPredicateRules extends CassandraPredicateRules with Logging

Linear Supertypes
Logging, CassandraPredicateRules, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SolrPredicateRules
  2. Logging
  3. CassandraPredicateRules
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SolrPredicateRules(searchOptimizationEnabled: DseSearchOptimizationSetting)

Type Members

  1. case class SolrFilter(solrQuery: String, references: Array[String]) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def alreadyContainsSolrQuery(predicates: AnalyzedPredicates): Boolean
  5. def apply(predicates: AnalyzedPredicates, tableDef: TableDef, sparkConf: SparkConf): AnalyzedPredicates

    Entry point for Spark Cassandra Connector.

    Entry point for Spark Cassandra Connector. Reads SolrIndexedColumn information from C*. See above Apply method for actual implementation.

    Definition Classes
    SolrPredicateRulesCassandraPredicateRules
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def convertToSolrFilter(filter: Filter): SolrFilter
  9. def convertToSolrQuery(predicates: AnalyzedPredicates, tableDef: TableDef, solrIndexedFields: Set[String], searchOptimizationEnabled: DseSearchOptimizationSetting, sparkConf: SparkConf): AnalyzedPredicates

    For all top level filters.

    For all top level filters. If the filter can be changed into a SolrQuery we will convert it and mark it as handled by Cassandra. All other filters will be filtered within Spark

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def escapeSolrCondition(condition: String): String
  13. def findUselessIsNotNulls(filters: Set[Filter], tableDef: TableDef): Set[IsNotNull]

    Whenever we have an attribute filter we don't need to do an IS_NOT_NULL check.

    Whenever we have an attribute filter we don't need to do an IS_NOT_NULL check. This also helps when we remove partition key restrictions because we don't keep useless IsNotNulls which generate bad Solr.

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getPartitionKeyRestriction(predicates: AnalyzedPredicates, tableDef: TableDef): Set[EqualTo]

    Returns all predicates that can be treated as a single partition restriction.

    Returns all predicates that can be treated as a single partition restriction.

    Follows the same rules as in SCC Basic Cassandra Predicates

    If no single partition restriction can be found returns nothing.

  16. def getSolrIndexedColumnsFromSolrXML(tableDef: TableDef, sparkConf: SparkConf): Set[String]

    Unfortunately the easiest current way to remotely determine what columns have been indexed by solr is to read the Schema.xml.

    Unfortunately the easiest current way to remotely determine what columns have been indexed by solr is to read the Schema.xml. To obtain this we check the Cassandra solr_admin table and pull the text from the schema.xml.bak.

    Schema.xml.bak is the current "live" schema while schema.xml is the schema that will be applied on refresh.

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def isConvertibleToSolr(filter: Filter, indexedCols: Set[String]): Boolean

    Checks that the filter and all dependent filters are indexed by SolrIndexes.

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  21. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logError(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logInfo(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logInfo(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  29. def logTrace(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logTrace(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logWarning(msg: ⇒ String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logWarning(msg: ⇒ String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toSolrString(value: Any): String

    Sometimes the Java String Representation of the Value is not what solr is expecting so we need to do conversions.

    Sometimes the Java String Representation of the Value is not what solr is expecting so we need to do conversions. Additionally we need to encode that encoded string for JSON so we can pass it through to Solr.

  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Logging

Inherited from CassandraPredicateRules

Inherited from AnyRef

Inherited from Any

Ungrouped