Class SimpleCompactionDispatcher
- All Implemented Interfaces:
CompactionDispatcher
The following schema is supported for configuration options.
table.compaction.dispatcher.opts.service[.user[.<user type>]|selected|system|chop]=
<service>
The following configuration will make a table use compaction service cs9 for user compactions, service cs4 for chop compactions, and service cs7 for everything else.
table.compaction.dispatcher.opts.service=cs7
table.compaction.dispatcher.opts.service.user=cs9
table.compaction.dispatcher.opts.service.chop=cs4
Compactions started using the client API are called user compactions and can set execution hints
using CompactionConfig.setExecutionHints(Map)
. Hints of the form
compaction_type=<user type>
can be used by this dispatcher. For example the following
will use service cs2 when the hint compaction_type=urgent
is seen, service cs3 when hint
compaction_type=trifling
, everything else uses cs9.
table.compaction.dispatcher.opts.service=cs9
table.compaction.dispatcher.opts.service.user.urgent=cs2
table.compaction.dispatcher.opts.service.user.trifling=cs3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.compaction.CompactionDispatcher
CompactionDispatcher.DispatchParameters, CompactionDispatcher.InitParameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAccumulo calls this method for compactions to determine what service to use.void
This method is called once after a CompactionDispatcher is instantiated.
-
Constructor Details
-
SimpleCompactionDispatcher
public SimpleCompactionDispatcher()
-
-
Method Details
-
init
Description copied from interface:CompactionDispatcher
This method is called once after a CompactionDispatcher is instantiated.- Specified by:
init
in interfaceCompactionDispatcher
-
dispatch
Description copied from interface:CompactionDispatcher
Accumulo calls this method for compactions to determine what service to use.- Specified by:
dispatch
in interfaceCompactionDispatcher
-