public class SparkBinPackStrategy 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, REWRITE_ALL, REWRITE_ALL_DEFAULT| Constructor and Description |
|---|
SparkBinPackStrategy(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, name, numOutputFiles, options, planFileGroups, selectFilesToRewrite, splitSize, targetFileSize, validOptions, writeMaxFileSizepublic SparkBinPackStrategy(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