Class CompactionConfig
java.lang.Object
org.apache.accumulo.core.client.admin.CompactionConfig
This class exist to pass parameters to 
TableOperations.compact(String, CompactionConfig)- Since:
- 1.7.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.apache.hadoop.io.TextbooleangetFlush()org.apache.hadoop.io.TextbooleangetWait()setConfigurer(PluginConfig configurerConfig) Enables aCompactionConfigurerto run for this compaction on the server side.setEndRow(org.apache.hadoop.io.Text end) setExecutionHints(Map<String, String> hints) setFlush(boolean flush) setIterators(List<IteratorSetting> iterators) setSelector(PluginConfig selectorConfig) Configure aCompactionSelectorplugin to run for this compaction.setStartRow(org.apache.hadoop.io.Text start) setWait(boolean wait) toString()
- 
Constructor Details- 
CompactionConfigpublic CompactionConfig()
 
- 
- 
Method Details- 
setStartRow- Parameters:
- start- First tablet to be compacted contains the row after this row, null means the first tablet in table. The default is null.
- Returns:
- this
 
- 
getStartRowpublic org.apache.hadoop.io.Text getStartRow()- Returns:
- The previously set start row. The default is null.
 
- 
setEndRow- Parameters:
- end- Last tablet to be compacted contains this row, null means the last tablet in table. The default is null.
- Returns:
- this
 
- 
getEndRowpublic org.apache.hadoop.io.Text getEndRow()- Returns:
- The previously set end row. The default is null.
 
- 
setFlush- Parameters:
- flush- If set to true, will flush in memory data of all tablets in range before compacting. If not set, the default is true.
- Returns:
- this
 
- 
getFlushpublic boolean getFlush()- Returns:
- The previously set flush. The default is true.
 
- 
setWait- Parameters:
- wait- If set to true, will cause compact operation to wait for all tablets in range to compact. If not set, the default is true.
- Returns:
- this
 
- 
getWaitpublic boolean getWait()- Returns:
- The previously set wait. The default is true.
 
- 
setIterators- Parameters:
- iterators- configures the iterators that will be used when compacting tablets. These iterators are merged with current iterators configured for the table.
- Returns:
- this
 
- 
getIterators- Returns:
- The previously set iterators. Returns an empty list if not set. The returned list is unmodifiable.
 
- 
setSelectorConfigure aCompactionSelectorplugin to run for this compaction. Specify the class name and options here.- Returns:
- this;
- Since:
- 2.1.0
 
- 
getSelector- Since:
- 2.1.0
 
- 
setExecutionHints- Since:
- 2.1.0
 
- 
getExecutionHints- Since:
- 2.1.0
 
- 
setConfigurerEnables aCompactionConfigurerto run for this compaction on the server side. Specify the class name and options here.- Since:
- 2.1.0
 
- 
getConfigurer- Since:
- 2.1.0
 
- 
toString
 
-