Packages

o

org.apache.spark.sql.delta

TypeWidening

object TypeWidening

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

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 assertTableReadable(protocol: Protocol, metadata: Metadata): Unit

    Asserts that the given table doesn't contain any unsupported type changes.

    Asserts that the given table doesn't contain any unsupported type changes. This should never happen unless a non-compliant writer applied a type change that is not part of the feature specification.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def ensureFeatureConsistentlyEnabled(protocol: Protocol, metadata: Metadata, otherProtocol: Protocol, otherMetadata: Metadata): Unit

    Checks that the type widening table property wasn't disabled or enabled between the two given states, throws an errors if it was.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def filterFilesRequiringRewrite(snapshot: Snapshot, files: Seq[AddFile]): Seq[AddFile]

    Filter the given list of files to only keep files that were written before the latest type change, if any.

    Filter the given list of files to only keep files that were written before the latest type change, if any. These older files contain a column or field with a type that is different than in the current table schema and must be rewritten when dropping the type widening table feature to make the table readable by readers that don't support the feature.

  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def isEnabled(protocol: Protocol, metadata: Metadata): Boolean

    Returns whether Type Widening is enabled on this table version.

    Returns whether Type Widening is enabled on this table version. Checks that Type Widening is supported, which is a pre-requisite for enabling Type Widening, throws an error if not. When Type Widening is enabled, the type of existing columns or fields can be widened using ALTER TABLE CHANGE COLUMN.

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isSupported(protocol: Protocol): Boolean

    Returns whether the protocol version supports the Type Widening table feature.

  17. def isTypeChangeSupported(fromType: AtomicType, toType: AtomicType): Boolean

    Returns whether the given type change is eligible for widening.

    Returns whether the given type change is eligible for widening. This only checks atomic types. It is the responsibility of the caller to recurse into structs, maps and arrays.

  18. def isTypeChangeSupportedForSchemaEvolution(fromType: AtomicType, toType: AtomicType): Boolean

    Returns whether the given type change can be applied during schema evolution.

    Returns whether the given type change can be applied during schema evolution. Only a subset of supported type changes are considered for schema evolution.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def numFilesRequiringRewrite(snapshot: Snapshot): Long

    Return the number of files that were written before the latest type change and that then contain a column or field with a type that is different from the current able schema.

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped