Class CompactionStrategyConfig
- java.lang.Object
-
- org.apache.accumulo.core.client.admin.PluginConfig
-
- org.apache.accumulo.core.client.admin.CompactionStrategyConfig
-
@Deprecated(since="2.1.0", forRemoval=true) public class CompactionStrategyConfig extends PluginConfig
Deprecated, for removal: This API element is subject to removal in a future version.since 2.1.0 CompactionStrategies were deprecated for multiple reasons. First, they do not support the new compaction execution model. Second, they bind selection and output file configuration into a single entity when users need to configure these independently. Third, they use internal Accumulo types and ensuring their stability requires manual effort that may never happen. Fourth, writing a correct compaction strategy was exceedingly difficult as it required knowledge of internal tablet server synchronization in order to avoid causing scans to hang. Fifth although measure were taken to execute compaction strategies in the same manner as before, their execution in the new model has subtle differences that may result in suboptimal compactions. Please migrate to usingCompactionConfig.setSelector(PluginConfig)
andCompactionConfig.setConfigurer(PluginConfig)
as soon as possible.Configuration object which describes how a Compaction is run. Configuration objects are dependent upon the CompactionStrategy running insider the server. This class is used in conjunction withCompactionConfig
.- Since:
- 1.7.0
-
-
Constructor Summary
Constructors Constructor Description CompactionStrategyConfig(String className)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompactionStrategyConfig
setOptions(Map<String,String> opts)
Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class org.apache.accumulo.core.client.admin.PluginConfig
equals, getClassName, getOptions, hashCode, toString
-
-
-
-
Constructor Detail
-
CompactionStrategyConfig
public CompactionStrategyConfig(String className)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
className
- The name of a class that implements org.apache.accumulo.tserver.compaction.CompactionStrategy. This class must be exist on tservers.
-
-
Method Detail
-
setOptions
public CompactionStrategyConfig setOptions(Map<String,String> opts)
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
setOptions
in classPluginConfig
- Parameters:
opts
- The options that will be passed to the init() method of the compaction strategy when its instantiated on a tserver. This method will copy the map. The default is an empty map.- Returns:
- this
-
-