Class CompactionStrategyConfig

java.lang.Object
org.apache.accumulo.core.client.admin.CompactionStrategyConfig

public class CompactionStrategyConfig extends Object
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 with CompactionConfig.
Since:
1.7.0
  • Constructor Details

    • CompactionStrategyConfig

      public CompactionStrategyConfig(String className)
      Parameters:
      className - The name of a class that implements org.apache.accumulo.tserver.compaction.CompactionStrategy. This class must be exist on tservers.
  • Method Details

    • getClassName

      public String getClassName()
      Returns:
      the class name passed to the constructor.
    • setOptions

      public CompactionStrategyConfig setOptions(Map<String,String> opts)
      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()
      Returns:
      The previously set options. Returns an unmodifiable map. The default is an empty map.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object