Interface DataWriteContext


@Evolving public interface DataWriteContext
Contains the context for writing data to Delta table. The context is created for each partition for partitioned table or once per table for un-partitioned table. It is created using Transaction.getWriteContext(Engine, Row, Map) (String, Map, List)}.
Since:
3.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the list of Column that the connector can optionally collect statistics.
    Returns the target directory where the data should be written.
  • Method Details

    • getTargetDirectory

      String getTargetDirectory()
      Returns the target directory where the data should be written.
      Returns:
      fully qualified path of the target directory
    • getStatisticsColumns

      List<Column> getStatisticsColumns()
      Returns the list of Column that the connector can optionally collect statistics. Each Column is a reference to a top-level or nested column in the table.

      Statistics collections can be skipped or collected for a partial list of the returned Columns. When stats are present in the written Delta log, they can be used to optimize query performance.

      Returns:
      schema of the statistics