class ForStatementExec extends ConditionalStatementExec
Executable node for ForStatement.
- Alphabetic
- By Inheritance
- ForStatementExec
- ConditionalStatementExec
- NonLeafStatementExec
- CompoundStatementExec
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ForStatementExec(query: SingleStatementExec, variableName: Option[String], statements: Seq[CompoundStatementExec], label: Option[String], session: classic.SparkSession, context: SqlScriptingExecutionContext)
- query
Executable node for the query.
- variableName
Name of variable used for accessing current row during iteration.
- statements
List of statements to be executed in the FOR body.
- label
Label set to ForStatement by user or None otherwise.
- session
Spark session that SQL script is executed within.
- context
SqlScriptingExecutionContext keeps the execution state of current script.
Type Members
- implicit class LogStringContext extends AnyRef
- Definition Classes
- Logging
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def MDC(key: LogKey, value: Any): MDC
- Attributes
- protected
- Definition Classes
- Logging
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- var curr: Option[CompoundStatementExec]
Pointer to the current statement - i.e.
Pointer to the current statement - i.e. the statement that should be iterated next.
- Attributes
- protected[scripting]
- Definition Classes
- ForStatementExec → NonLeafStatementExec
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evaluateBooleanCondition(session: classic.SparkSession, statement: LeafStatementExec): Boolean
Evaluate the boolean condition represented by the statement.
Evaluate the boolean condition represented by the statement.
- session
SparkSession that SQL script is executed within.
- statement
Statement representing the boolean condition to evaluate.
- returns
The value (
trueorfalse) of condition evaluation; or throw the error during the evaluation (eg: returning multiple rows of data or non-boolean statement).
- Attributes
- protected
- Definition Classes
- NonLeafStatementExec
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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
- ForStatementExec → NonLeafStatementExec
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val interrupted: Boolean
Interrupted flag indicates if the statement has been interrupted, and is used for skipping the execution of the conditional statements, by setting the hasNext to be false.
Interrupted flag indicates if the statement has been interrupted, and is used for skipping the execution of the conditional statements, by setting the hasNext to be false. Interrupt is issued by the CONTINUE HANDLER when the conditional statement's conditional expression throws an exception, and is issued by the Leave Statement when the ForStatementExec executes the Leave Statement injected by the EXIT HANDLER.
- Attributes
- protected[scripting]
- Definition Classes
- ConditionalStatementExec
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- Definition Classes
- CompoundStatementExec
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- val label: Option[String]
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logName: String
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def reset(): Unit
Reset execution of the current node.
Reset execution of the current node.
- Definition Classes
- ForStatementExec → CompoundStatementExec
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withLogContext(context: Map[String, String])(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- Logging
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)