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, writeMaxFileSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rewriteFiles, table
public SortStrategy sortOrder(SortOrder order)
order
- the order to useprotected SortOrder sortOrder()
public java.lang.String name()
RewriteStrategy
name
in interface RewriteStrategy
name
in class BinPackStrategy
public java.util.Set<java.lang.String> validOptions()
RewriteStrategy
validOptions
in interface RewriteStrategy
validOptions
in class BinPackStrategy
public RewriteStrategy options(java.util.Map<java.lang.String,java.lang.String> options)
RewriteStrategy
options
in interface RewriteStrategy
options
in class BinPackStrategy
protected void validateOptions()