class DefaultValue extends AnyRef
A class that represents default values.
Connectors can define default values using either a SQL string (Spark SQL dialect) or an
expression if the default value can be expressed as a supported connector
expression. 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
- DefaultValue.java
- Since
4.0.0
- Alphabetic
- By Inheritance
- DefaultValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DefaultValue(sql: String, expr: Expression)
- new DefaultValue(expr: Expression)
- new DefaultValue(sql: String)
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(other: AnyRef): Boolean
- Definition Classes
- DefaultValue → AnyRef → Any
- Annotations
- @Override()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getExpression(): Expression
Returns the expression representing the default value, if provided.
Returns the expression representing the default value, if provided.
- Annotations
- @Nullable()
- def getSql(): String
Returns the SQL representation of the default value (Spark SQL dialect), if provided.
Returns the SQL representation of the default value (Spark SQL dialect), if provided.
- Annotations
- @Nullable()
- def hashCode(): Int
- Definition Classes
- DefaultValue → AnyRef → Any
- Annotations
- @Override()
- 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
- DefaultValue → AnyRef → Any
- Annotations
- @Override()
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)