Skip to content

WriteTaskStatsTracker

WriteTaskStatsTracker is an abstraction of WriteTaskStatsTrackers that are notified about and can collect the WriteTaskStats about files, partitions and rows processed.

Contract

Closing File

closeFile(
  filePath: String): Unit

Used when:

Final WriteTaskStats

getFinalStats(
  taskCommitTime: Long): WriteTaskStats

Creates a WriteTaskStats

Used when:

New File

newFile(
  filePath: String): Unit

Used when:

New Partition

newPartition(
  partitionValues: InternalRow): Unit

Used when:

New Row

newRow(
  filePath: String,
  row: InternalRow): Unit

Used when:

Implementations