Package io.delta.kernel
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 TypeMethodDescriptionReturns the list ofColumn
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
Returns the list ofColumn
that the connector can optionally collect statistics. EachColumn
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
Column
s. When stats are present in the written Delta log, they can be used to optimize query performance.- Returns:
- schema of the statistics
-