Packages

c

org.apache.spark.sql.scripting

CaseStatementExec

class CaseStatementExec extends NonLeafStatementExec

Executable node for CaseStatement.

Source
SqlScriptingExecutionNode.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CaseStatementExec
  2. NonLeafStatementExec
  3. CompoundStatementExec
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CaseStatementExec(conditions: Seq[SingleStatementExec], conditionalBodies: Seq[CompoundBodyExec], elseBody: Option[CompoundBodyExec], session: SparkSession)

    conditions

    Collection of executable conditions which correspond to WHEN clauses.

    conditionalBodies

    Collection of executable bodies that have a corresponding condition, in WHEN branches.

    elseBody

    Body that is executed if none of the conditions are met, i.e. ELSE branch.

    session

    Spark session that SQL script is executed within.

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. def getTreeIterator: Iterator[CompoundStatementExec]

    Construct the iterator to traverse the tree rooted at this node in an in-order traversal.

    Construct the iterator to traverse the tree rooted at this node in an in-order traversal.

    returns

    Tree iterator.

    Definition Classes
    CaseStatementExecNonLeafStatementExec
  2. val isInternal: Boolean

    Whether the statement originates from the SQL script or is created during the interpretation.

    Whether the statement originates from the SQL script or is created during the interpretation. Example: DropVariable statements are automatically created at the end of each compound.

    Definition Classes
    CompoundStatementExec
  3. def reset(): Unit

    Reset execution of the current node.

    Reset execution of the current node.

    Definition Classes
    CaseStatementExecCompoundStatementExec