Package org.apache.spark.sql.scripting
Class CompoundNestedStatementIteratorExec
Object
org.apache.spark.sql.scripting.CompoundNestedStatementIteratorExec
- All Implemented Interfaces:
org.apache.spark.internal.Logging
,CompoundStatementExec
,NonLeafStatementExec
- Direct Known Subclasses:
CompoundBodyExec
public abstract class CompoundNestedStatementIteratorExec
extends Object
implements NonLeafStatementExec
Abstract class for all statements that contain nested statements.
Implements recursive iterator logic over all child execution nodes.
param: collection
Collection of child execution nodes.
param: label
Label set by user or None otherwise.
-
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
ConstructorDescriptionCompoundNestedStatementIteratorExec
(scala.collection.immutable.Seq<CompoundStatementExec> collection, scala.Option<String> label) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.Iterator<CompoundStatementExec>
Construct the iterator to traverse the tree rooted at this node in an in-order traversal.boolean
Whether the statement originates from the SQL script or is created during the interpretation.void
reset()
Reset execution of the current node.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, withLogContext
Methods inherited from interface org.apache.spark.sql.scripting.NonLeafStatementExec
evaluateBooleanCondition
-
Constructor Details
-
CompoundNestedStatementIteratorExec
public CompoundNestedStatementIteratorExec(scala.collection.immutable.Seq<CompoundStatementExec> collection, scala.Option<String> label)
-
-
Method Details
-
isInternal
public boolean isInternal()Description copied from interface:CompoundStatementExec
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.- Specified by:
isInternal
in interfaceCompoundStatementExec
- Returns:
- (undocumented)
-
getTreeIterator
Description copied from interface:NonLeafStatementExec
Construct the iterator to traverse the tree rooted at this node in an in-order traversal.- Specified by:
getTreeIterator
in interfaceNonLeafStatementExec
- Returns:
- Tree iterator.
-
reset
public void reset()Description copied from interface:CompoundStatementExec
Reset execution of the current node.- Specified by:
reset
in interfaceCompoundStatementExec
-