Packages

c

org.apache.spark.sql.connector.catalog

GenerationExpression

class GenerationExpression extends ColumnExpressionBase

A class that represents generated column expressions.

Connectors can define generated columns using either a SQL string (Spark SQL dialect) or a more portable connector expression, whose semantics follow the ANSI SQL standard.

If both the SQL string and the expression are provided, Spark first attempts to convert the given expression to its internal representation. If the expression cannot be converted, and a SQL string is provided, Spark will fall back to parsing the SQL string.

Annotations
@Evolving()
Source
GenerationExpression.java
Since

4.3.0

Linear Supertypes
ColumnExpressionBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenerationExpression
  2. ColumnExpressionBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GenerationExpression(sql: String, expr: Expression)
  2. new GenerationExpression(expr: Expression)
  3. new GenerationExpression(sql: String)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(other: AnyRef): Boolean
    Definition Classes
    ColumnExpressionBase → AnyRef → Any
    Annotations
    @Override()
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. final def getExpression(): Expression

    Returns the connector expression, if provided.

    Returns the connector expression, if provided.

    Definition Classes
    ColumnExpressionBase
    Annotations
    @Nullable()
  10. final def getSql(): String

    Returns the SQL representation, if provided.

    Returns the SQL representation, if provided.

    Definition Classes
    ColumnExpressionBase
    Annotations
    @Nullable()
  11. def hashCode(): Int
    Definition Classes
    ColumnExpressionBase → AnyRef → Any
    Annotations
    @Override()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    GenerationExpression → AnyRef → Any
    Annotations
    @Override()
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 ColumnExpressionBase

Inherited from AnyRef

Inherited from Any

Ungrouped