Object/Class

org.apache.spark.sql.cassandra.execution

CassandraDirectJoinStrategy

Related Docs: class CassandraDirectJoinStrategy | package execution

Permalink

object CassandraDirectJoinStrategy extends Logging with Serializable

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

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 aliasMap(aliases: Seq[NamedExpression]): Map[String, ExprId]

    Permalink

    Map Source Names to Attributes

  5. def allPartitionKeysAreJoined(plan: LogicalPlan, joinKeys: Seq[Expression]): Boolean

    Permalink

    Every partition key column must be a join key

  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 containsSafePlans(plan: LogicalPlan): Boolean

    Permalink

    Checks whether a logical plan contains only Filters, Aliases and CassandraSource Relations

  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getCassandraSource(plan: LogicalPlan): Option[CassandraSourceRelation]

    Permalink

    Checks whether there is only a single leaf to this plan and that the leaf is a CassandraSourceRelation.

    Checks whether there is only a single leaf to this plan and that the leaf is a CassandraSourceRelation. If it is returns that relation.

  13. def getCassandraTableScanRDD(rdd: RDD[_]): Option[CassandraTableScanRDD[_]]

    Permalink

    Recursively search the dependencies of an RDD for a CassandraTableScanRDD Only searches single dependency chains, on branches chooses left

    Recursively search the dependencies of an RDD for a CassandraTableScanRDD Only searches single dependency chains, on branches chooses left

    Annotations
    @tailrec()
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getLogicalRelation(plan: LogicalPlan): Option[LogicalRelation]

    Permalink

    Returns a single logical source for the branch if there is one

  16. def getScanExec(plan: SparkPlan): Option[DataSourceScanExec]

    Permalink

    Returns the single DataSourceScanExec for the branch if there is one

  17. def hasCassandraChild[T <: QueryPlan[T]](plan: T): Boolean

    Permalink

    Checks whether a query plan has either a logical or physical node pulling data from cassandra

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  36. def reorderPlan(plan: SparkPlan, directJoin: CassandraDirectJoinExec): SparkPlan

    Permalink

    Given our target Cassandra based branch, we remove the node which draws data from cassandra (DataSourceScanExec) and replace it with the passed directJoin plan instead.

    Given our target Cassandra based branch, we remove the node which draws data from cassandra (DataSourceScanExec) and replace it with the passed directJoin plan instead.

    INPUT :

    //directJoin: DirectJoinPlan// DirectJoin <-- GetKeyOperations

    //plan: Optimized CassandraScanBranch/ OtherOperations <-- CassandraScan

    OUTPUT:

    OtherOperations <-- DirectJoin <-- GetKeyOperations

    The output of (plan) is not changed, but its children should be changed.

    This should only be called on optimized Physical Plans

  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def validJoinBranch(plan: LogicalPlan, keys: Seq[Expression]): Boolean

    Permalink

    Checks whether the Plan contains only acceptable logical nodes and all partition keys are joined

  40. def validJoinType(cassandraSide: BuildSide, joinType: JoinType): Boolean

    Permalink
  41. val validJoins: Map[BuildSide, Seq[JoinType]]

    Permalink

    Currently we will only support Inner, LeftOuter and RightOuter joins Depending on the side of the CassandraTarget different joins are allowed.

  42. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped