object Constraints

Utilities for handling constraints. Right now this includes: - Column-level invariants delegated to Invariants, including both NOT NULL constraints and an old style of CHECK constraint specified in the column metadata - Table-level CHECK constraints

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Constraints
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Check(name: String, expression: Expression) extends Constraint with Product with Serializable

    A SQL expression to check for when writing out data.

  2. case class NotNull(column: Seq[String]) extends Constraint with Product with Serializable

    A constraint that the specified column must not be NULL.

    A constraint that the specified column must not be NULL. Note that when the column is nested, this implies its parents must also not be NULL.

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 checkConstraintPropertyName(constraintName: String): String
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def findDependentConstraints(sparkSession: SparkSession, columnName: Seq[String], metadata: Metadata): Map[String, String]

    Find all the check constraints that reference the given column name.

    Find all the check constraints that reference the given column name. Returns a map of constraint names to their corresponding expression.

  11. def getAll(metadata: Metadata, spark: SparkSession): Seq[Constraint]

    Extract all constraints from the given Delta table metadata.

  12. def getCheckConstraintNames(metadata: Metadata): Seq[String]
  13. def getCheckConstraints(metadata: Metadata, spark: SparkSession): Seq[Constraint]

    Extract CHECK constraints from the table properties.

    Extract CHECK constraints from the table properties. Note that some CHECK constraints may also come from schema metadata; these constraints were never released in a public API but are maintained for protocol compatibility.

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getExprTextByName(name: String, metadata: Metadata, spark: SparkSession): Option[String]

    Get the expression text for a constraint with the given name, if present.

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped