SizeBasedFileRewriter instead.@Deprecated public abstract class SortStrategy extends BinPackStrategy
Currently the there is no file overlap detection and we will rewrite all files if BinPackStrategy.REWRITE_ALL is true (default: false). If this property is disabled any files that
would be chosen by BinPackStrategy will be rewrite candidates.
In the future other algorithms for determining files to rewrite will be provided.
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 |
|---|
SortStrategy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
name()
Deprecated.
Returns the name of this rewrite strategy
|
RewriteStrategy |
options(java.util.Map<java.lang.String,java.lang.String> options)
Deprecated.
Sets options to be used with this strategy
|
protected SortOrder |
sortOrder()
Deprecated.
|
SortStrategy |
sortOrder(SortOrder order)
Deprecated.
Sets the sort order to be used in this strategy when rewriting files
|
protected void |
validateOptions()
Deprecated.
|
java.util.Set<java.lang.String> |
validOptions()
Deprecated.
Returns a set of options which this rewrite strategy can use.
|
inputFileSize, numOutputFiles, planFileGroups, selectFilesToRewrite, splitSize, targetFileSize, writeMaxFileSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrewriteFiles, tablepublic SortStrategy sortOrder(SortOrder order)
order - the order to useprotected SortOrder sortOrder()
public java.lang.String name()
RewriteStrategyname in interface RewriteStrategyname in class BinPackStrategypublic java.util.Set<java.lang.String> validOptions()
RewriteStrategyvalidOptions in interface RewriteStrategyvalidOptions in class BinPackStrategypublic RewriteStrategy options(java.util.Map<java.lang.String,java.lang.String> options)
RewriteStrategyoptions in interface RewriteStrategyoptions in class BinPackStrategyprotected void validateOptions()