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, writeMaxFileSize
public Spark3BinPackStrategy(Table table, org.apache.spark.sql.SparkSession spark)
public Table table()
RewriteStrategy
public java.util.Set<DataFile> rewriteFiles(java.util.List<FileScanTask> filesToRewrite)
RewriteStrategy
filesToRewrite
- a group of files to be rewritten together