Class SqlScriptingInterpreter

Object
org.apache.spark.sql.scripting.SqlScriptingInterpreter
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class SqlScriptingInterpreter extends Object implements scala.Product, Serializable
SQL scripting interpreter - builds SQL script execution plan.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
     
    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
     

    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

      public static String 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.