Package org.apache.spark.sql.scripting
Class RepeatStatementExec
Object
org.apache.spark.sql.scripting.RepeatStatementExec
- All Implemented Interfaces:
org.apache.spark.internal.Logging,CompoundStatementExec,NonLeafStatementExec
Executable node for RepeatStatement.
param: condition Executable node for the condition - evaluates to a row with a single boolean
expression, otherwise throws an exception
param: body Executable node for the body.
param: label Label set to RepeatStatement by user, None if not set
param: session Spark session that SQL script is executed within.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.internal.Logging
org.apache.spark.internal.Logging.LogStringContext, org.apache.spark.internal.Logging.SparkShellLoggingFilter -
Constructor Summary
ConstructorsConstructorDescriptionRepeatStatementExec(SingleStatementExec condition, CompoundBodyExec body, scala.Option<String> label, SparkSession session) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.Iterator<CompoundStatementExec>Construct the iterator to traverse the tree rooted at this node in an in-order traversal.booleanWhether the statement originates from the SQL script or is created during the interpretation.voidreset()Reset execution of the current node.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.internal.Logging
initializeForcefully, initializeLogIfNecessary, initializeLogIfNecessary, initializeLogIfNecessary$default$2, isTraceEnabled, log, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logName, LogStringContext, logTrace, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, logWarning, org$apache$spark$internal$Logging$$log_, org$apache$spark$internal$Logging$$log__$eq, withLogContextMethods inherited from interface org.apache.spark.sql.scripting.NonLeafStatementExec
evaluateBooleanCondition
-
Constructor Details
-
RepeatStatementExec
public RepeatStatementExec(SingleStatementExec condition, CompoundBodyExec body, scala.Option<String> label, SparkSession session)
-
-
Method Details
-
getTreeIterator
Description copied from interface:NonLeafStatementExecConstruct the iterator to traverse the tree rooted at this node in an in-order traversal.- Specified by:
getTreeIteratorin interfaceNonLeafStatementExec- Returns:
- Tree iterator.
-
isInternal
public boolean isInternal()Description copied from interface:CompoundStatementExecWhether 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.- Specified by:
isInternalin interfaceCompoundStatementExec- Returns:
- (undocumented)
-
reset
public void reset()Description copied from interface:CompoundStatementExecReset execution of the current node.- Specified by:
resetin interfaceCompoundStatementExec
-