public class CompactionConfig extends Object
TableOperations.compact(String, CompactionConfig)
Constructor and Description |
---|
CompactionConfig() |
Modifier and Type | Method and Description |
---|---|
CompactionStrategyConfig |
getCompactionStrategy() |
org.apache.hadoop.io.Text |
getEndRow() |
boolean |
getFlush() |
List<IteratorSetting> |
getIterators() |
org.apache.hadoop.io.Text |
getStartRow() |
boolean |
getWait() |
CompactionConfig |
setCompactionStrategy(CompactionStrategyConfig csConfig) |
CompactionConfig |
setEndRow(org.apache.hadoop.io.Text end) |
CompactionConfig |
setFlush(boolean flush) |
CompactionConfig |
setIterators(List<IteratorSetting> iterators) |
CompactionConfig |
setStartRow(org.apache.hadoop.io.Text start) |
CompactionConfig |
setWait(boolean wait) |
public CompactionConfig setStartRow(org.apache.hadoop.io.Text start)
start
- First tablet to be compacted contains the row after this row, null means the first
tablet in table. The default is null.public org.apache.hadoop.io.Text getStartRow()
public CompactionConfig setEndRow(org.apache.hadoop.io.Text end)
end
- Last tablet to be compacted contains this row, null means the last tablet in table.
The default is null.public org.apache.hadoop.io.Text getEndRow()
public CompactionConfig setFlush(boolean flush)
flush
- If set to true, will flush in memory data of all tablets in range before compacting.
If not set, the default is true.public boolean getFlush()
public CompactionConfig setWait(boolean wait)
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.public boolean getWait()
public CompactionConfig setIterators(List<IteratorSetting> iterators)
iterators
- configures the iterators that will be used when compacting tablets. These iterators
are merged with current iterators configured for the table.public List<IteratorSetting> getIterators()
public CompactionConfig setCompactionStrategy(CompactionStrategyConfig csConfig)
csConfig
- configures the strategy that will be used by each tablet to select files. If no
strategy is set, then all files will be compacted.public CompactionStrategyConfig getCompactionStrategy()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.