Object

org.apache.spark.sql.cassandra

SolrPredicateRules

Related Doc: package cassandra

Permalink

object SolrPredicateRules extends Logging

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

Type Members

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alreadyContainsSolrQuery(predicates: AnalyzedPredicates): Boolean

    Permalink
  5. def apply(predicates: AnalyzedPredicates, tableDef: TableDef, sparkConf: SparkConf, searchOptimizationEnabled: DseSearchOptimizationSetting): AnalyzedPredicates

    Permalink

    Entry point for Spark Cassandra Connector.

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

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def convertToSolrFilter(filter: Filter): SolrFilter

    Permalink
  9. def convertToSolrQuery(predicates: AnalyzedPredicates, tableDef: TableDef, solrIndexedFields: Set[String], searchOptimizationEnabled: DseSearchOptimizationSetting, sparkConf: SparkConf): AnalyzedPredicates

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def escapeSolrCondition(condition: String): String

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def findUselessIsNotNulls(filters: Set[Filter], tableDef: TableDef): Set[IsNotNull]

    Permalink

    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.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getPartitionKeyRestriction(predicates: AnalyzedPredicates, tableDef: TableDef): Set[EqualTo]

    Permalink

    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.

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

    Permalink

    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.

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def isConvertibleToSolr(filter: Filter, indexedCols: Set[String]): Boolean

    Permalink

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

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  22. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  30. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  32. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toSolrString(value: Any): String

    Permalink

    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.

  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped