class SqlScriptingExecution extends AnyRef
SQL scripting executor - executes script and returns result statements. This supports returning multiple result statements from a single script. The caller of the SqlScriptingExecution API must wrap the interpretation and execution of statements with the withLocalVariableManager method, and adhere to the contract of executing the returned statement before continuing iteration. Executing the statement needs to be done inside withErrorHandling block.
- Alphabetic
- By Inheritance
- SqlScriptingExecution
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SqlScriptingExecution(sqlScript: CompoundBody, session: classic.SparkSession, args: Map[String, Expression])
- sqlScript
CompoundBody which need to be executed.
- session
Spark session that SQL script is executed within.
- args
A map of parameter names to SQL literal expressions.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getNextResult: Option[classic.DataFrame]
Advances through the script and executes statements until a result statement or end of script is encountered.
Advances through the script and executes statements until a result statement or end of script is encountered.
To know if there is result statement available, the method has to advance through script and execute statements until the result statement or end of script is encountered. For that reason the returned result must be executed before subsequent calls. Multiple calls without executing the intermediate results will lead to incorrect behavior.
- returns
Result DataFrame if it is available, otherwise None.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withErrorHandling(f: => Unit): Unit
- def withLocalVariableManager[R](f: => R): R
Handles scripting context creation/access/deletion.
Handles scripting context creation/access/deletion. Calls to execution API must be wrapped with this method.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)