Package org.apache.spark.sql.scripting
Class SqlScriptingInterpreter
Object
org.apache.spark.sql.scripting.SqlScriptingInterpreter
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
SQL scripting interpreter - builds SQL script execution plan.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract static Rapply()scala.collection.Iterator<CompoundStatementExec>buildExecutionPlan(org.apache.spark.sql.catalyst.parser.CompoundBody compound, SparkSession session) Build execution plan and return statements that need to be executed, wrapped in the execution node.static StringtoString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
SqlScriptingInterpreter
public SqlScriptingInterpreter()
-
-
Method Details
-
apply
public abstract static R apply() -
toString
-
buildExecutionPlan
public scala.collection.Iterator<CompoundStatementExec> buildExecutionPlan(org.apache.spark.sql.catalyst.parser.CompoundBody compound, SparkSession session) Build execution plan and return statements that need to be executed, wrapped in the execution node.- Parameters:
compound- CompoundBody for which to build the plan.session- Spark session that SQL script is executed within.- Returns:
- Iterator through collection of statements to be executed.
-