c

io.delta.tables

DeltaOptimizeBuilder

class DeltaOptimizeBuilder extends AnalysisHelper

Builder class for constructing OPTIMIZE command and executing.

Since

2.0.0

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

Value Members

  1. def executeCompaction(): DataFrame

    Compact the small files in selected partitions.

    Compact the small files in selected partitions.

    returns

    DataFrame containing the OPTIMIZE execution metrics

    Since

    2.0.0

  2. def executeZOrderBy(columns: String*): DataFrame

    Z-Order the data in selected partitions using the given columns.

    Z-Order the data in selected partitions using the given columns.

    columns

    Zero or more columns to order the data using Z-Order curves

    returns

    DataFrame containing the OPTIMIZE execution metrics

    Annotations
    @varargs()
    Since

    2.0.0

  3. def where(partitionFilter: String): DeltaOptimizeBuilder

    Apply partition filter on this optimize command builder to limit the operation on selected partitions.

    Apply partition filter on this optimize command builder to limit the operation on selected partitions.

    partitionFilter

    The partition filter to apply

    returns

    DeltaOptimizeBuilder with partition filter applied

    Since

    2.0.0