Packages

c

org.apache.spark.sql.scripting

IfElseStatementExec

class IfElseStatementExec extends NonLeafStatementExec

Executable node for IfElseStatement.

Source
SqlScriptingExecutionNode.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IfElseStatementExec
  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 IfElseStatementExec(conditions: Seq[SingleStatementExec], conditionalBodies: Seq[CompoundBodyExec], elseBody: Option[CompoundBodyExec], session: SparkSession)

    conditions

    Collection of executable conditions. First condition corresponds to IF clause, while others (if any) correspond to following ELSE IF clauses.

    conditionalBodies

    Collection of executable bodies that have a corresponding condition, in IF or ELSE IF 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
    IfElseStatementExecNonLeafStatementExec
  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
    IfElseStatementExecCompoundStatementExec