public class Spark3BinPackStrategy extends BinPackStrategy
DELETE_FILE_THRESHOLD, DELETE_FILE_THRESHOLD_DEFAULT, MAX_FILE_SIZE_BYTES, MAX_FILE_SIZE_DEFAULT_RATIO, MIN_FILE_SIZE_BYTES, MIN_FILE_SIZE_DEFAULT_RATIO, MIN_INPUT_FILES, MIN_INPUT_FILES_DEFAULT| Constructor and Description |
|---|
Spark3BinPackStrategy(Table table,
org.apache.spark.sql.SparkSession spark) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<DataFile> |
rewriteFiles(java.util.List<FileScanTask> filesToRewrite)
Method which will rewrite files based on this particular RewriteStrategy's algorithm.
|
Table |
table()
Returns the table being modified by this rewrite strategy
|
inputFileSize, maxGroupSize, name, numOutputFiles, options, planFileGroups, selectFilesToRewrite, splitSize, targetFileSize, validOptions, writeMaxFileSizepublic Spark3BinPackStrategy(Table table, org.apache.spark.sql.SparkSession spark)
public Table table()
RewriteStrategypublic java.util.Set<DataFile> rewriteFiles(java.util.List<FileScanTask> filesToRewrite)
RewriteStrategyfilesToRewrite - a group of files to be rewritten together