Class CompactionStrategyConfig
- java.lang.Object
-
- org.apache.accumulo.core.client.admin.CompactionStrategyConfig
-
@Deprecated(since="2.1.0", forRemoval=true) public class CompactionStrategyConfig extends Object
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 boolean
equals(Object o)
Deprecated, for removal: This API element is subject to removal in a future version.String
getClassName()
Deprecated, for removal: This API element is subject to removal in a future version.Map<String,String>
getOptions()
Deprecated, for removal: This API element is subject to removal in a future version.int
hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.CompactionStrategyConfig
setOptions(Map<String,String> opts)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
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 exist on tservers.
-
-
Method Detail
-
getClassName
public String getClassName()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the class name passed to the constructor.
-
setOptions
public CompactionStrategyConfig setOptions(Map<String,String> opts)
Deprecated, for removal: This API element is subject to removal in a future version.- 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
-
getOptions
public Map<String,String> getOptions()
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The previously set options. Returns an unmodifiable map. The default is an empty map.
-
hashCode
public int hashCode()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-