c

org.apache.spark.sql.scripting

SimpleCaseStatementExec

class SimpleCaseStatementExec extends ConditionalStatementExec

Executable node for SimpleCaseStatement.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleCaseStatementExec
  2. ConditionalStatementExec
  3. NonLeafStatementExec
  4. CompoundStatementExec
  5. Logging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SimpleCaseStatementExec(caseVariableExec: SingleStatementExec, conditionExpressions: Seq[Expression], conditionalBodies: Seq[CompoundBodyExec], elseBody: Option[CompoundBodyExec], session: classic.SparkSession, context: SqlScriptingExecutionContext)

    caseVariableExec

    Statement with which all conditionExpressions will be compared to.

    conditionExpressions

    Collection of expressions which correspond to WHEN clauses.

    conditionalBodies

    Collection of executable bodies that have a corresponding condition, in WHEN branches.

    elseBody

    Body that is executed if none of the conditions are met, i.e. ELSE branch.

    session

    Spark session that SQL script is executed within.

    context

    SqlScriptingExecutionContext keeps the execution state of current script.

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. var curr: Option[CompoundStatementExec]

    Pointer to the current statement - i.e.

    Pointer to the current statement - i.e. the statement that should be iterated next.

    Attributes
    protected[scripting]
    Definition Classes
    SimpleCaseStatementExecNonLeafStatementExec
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def evaluateBooleanCondition(session: classic.SparkSession, statement: LeafStatementExec): Boolean

    Evaluate the boolean condition represented by the statement.

    Evaluate the boolean condition represented by the statement.

    session

    SparkSession that SQL script is executed within.

    statement

    Statement representing the boolean condition to evaluate.

    returns

    The value (true or false) of condition evaluation; or throw the error during the evaluation (eg: returning multiple rows of data or non-boolean statement).

    Attributes
    protected
    Definition Classes
    NonLeafStatementExec
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def getTreeIterator: Iterator[CompoundStatementExec]

    Construct the iterator to traverse the tree rooted at this node in an in-order traversal.

    Construct the iterator to traverse the tree rooted at this node in an in-order traversal.

    returns

    Tree iterator.

    Definition Classes
    SimpleCaseStatementExecNonLeafStatementExec
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  15. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  16. val interrupted: Boolean

    Interrupted flag indicates if the statement has been interrupted, and is used for skipping the execution of the conditional statements, by setting the hasNext to be false.

    Interrupted flag indicates if the statement has been interrupted, and is used for skipping the execution of the conditional statements, by setting the hasNext to be false. Interrupt is issued by the CONTINUE HANDLER when the conditional statement's conditional expression throws an exception, and is issued by the Leave Statement when the ForStatementExec executes the Leave Statement injected by the EXIT HANDLER.

    Attributes
    protected[scripting]
    Definition Classes
    ConditionalStatementExec
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val isInternal: Boolean

    Whether the statement originates from the SQL script or is created during the interpretation.

    Whether the statement originates from the SQL script or is created during the interpretation.

    Definition Classes
    CompoundStatementExec
  19. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  20. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  21. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  22. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  29. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  30. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  31. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  32. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  34. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  35. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  46. def reset(): Unit

    Reset execution of the current node.

    Reset execution of the current node.

    Definition Classes
    SimpleCaseStatementExecCompoundStatementExec
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from NonLeafStatementExec

Inherited from CompoundStatementExec

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped