Skip to content

OptimizeStats

Creating Instance

OptimizeStats takes the following to be created:

  • addedFilesSizeStats
  • removedFilesSizeStats
  • numPartitionsOptimized
  • zOrderStats
  • numBatches
  • totalConsideredFiles
  • totalFilesSkipped
  • preserveInsertionOrder
  • numFilesSkippedToReduceWriteAmplification
  • numBytesSkippedToReduceWriteAmplification
  • startTimeMs
  • endTimeMs

OptimizeStats is created when:

  • OptimizeExecutor is requested to optimize

Creating OptimizeMetrics

toOptimizeMetrics: OptimizeMetrics

toOptimizeMetrics converts this OptimizeStats to a OptimizeMetrics.

toOptimizeMetrics is used when:

  • OptimizeExecutor is requested to optimize