Packages

c

org.apache.spark.sql.scripting

LeaveStatementExec

class LeaveStatementExec extends LeafStatementExec

Executable node for LeaveStatement.

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

Instance Constructors

  1. new LeaveStatementExec(label: String)

    label

    Label of the compound or loop to leave.

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. var hasBeenMatched: Boolean

    Label specified in the LEAVE statement might not belong to the immediate surrounding compound, but to the any surrounding compound.

    Label specified in the LEAVE statement might not belong to the immediate surrounding compound, but to the any surrounding compound. Iteration logic is recursive, i.e. when iterating through the compound, if another compound is encountered, next() will be called to iterate its body. The same logic is applied to any other compound down the traversal tree. In such cases, when LEAVE statement is encountered (as the leaf of the traversal tree), it will be propagated upwards and the logic will try to match it to the labels of surrounding compounds. Once the match is found, this flag is set to true to indicate that search should be stopped.

  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. val label: String
  4. def reset(): Unit

    Reset execution of the current node.

    Reset execution of the current node.

    Definition Classes
    LeaveStatementExecCompoundStatementExec