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
-
Method Summary
Modifier and TypeMethodDescriptionabstract static R
apply()
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 String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods 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.
-