public class SparkZOrderStrategy extends SparkSortStrategy
COMPRESSION_FACTOR
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 |
---|
SparkZOrderStrategy(Table table,
org.apache.spark.sql.SparkSession spark,
java.util.List<java.lang.String> zOrderColNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
Returns the name of this rewrite strategy
|
RewriteStrategy |
options(java.util.Map<java.lang.String,java.lang.String> options)
Sets options to be used with this strategy
|
java.util.Set<DataFile> |
rewriteFiles(java.util.List<FileScanTask> filesToRewrite)
Method which will rewrite files based on this particular RewriteStrategy's algorithm.
|
protected SortOrder |
sortOrder() |
protected void |
validateOptions() |
java.util.Set<java.lang.String> |
validOptions()
Returns a set of options which this rewrite strategy can use.
|
manager, rewriteCoordinator, sizeEstimateMultiple, sortPlan, spark, table, tableCache
sortOrder
inputFileSize, numOutputFiles, planFileGroups, selectFilesToRewrite, splitSize, targetFileSize, writeMaxFileSize
public SparkZOrderStrategy(Table table, org.apache.spark.sql.SparkSession spark, java.util.List<java.lang.String> zOrderColNames)
public java.util.Set<java.lang.String> validOptions()
RewriteStrategy
validOptions
in interface RewriteStrategy
validOptions
in class SparkSortStrategy
public RewriteStrategy options(java.util.Map<java.lang.String,java.lang.String> options)
RewriteStrategy
options
in interface RewriteStrategy
options
in class SparkSortStrategy
public java.lang.String name()
RewriteStrategy
name
in interface RewriteStrategy
name
in class SortStrategy
protected void validateOptions()
validateOptions
in class SortStrategy
public java.util.Set<DataFile> rewriteFiles(java.util.List<FileScanTask> filesToRewrite)
RewriteStrategy
rewriteFiles
in interface RewriteStrategy
rewriteFiles
in class SparkSortStrategy
filesToRewrite
- a group of files to be rewritten togetherprotected SortOrder sortOrder()
sortOrder
in class SortStrategy