Class SimpleScanDispatcher
- java.lang.Object
-
- org.apache.accumulo.core.spi.scan.SimpleScanDispatcher
-
- All Implemented Interfaces:
ScanDispatcher
public class SimpleScanDispatcher extends Object implements ScanDispatcher
If no options are given, then this will dispatch to an executor nameddefault. This dispatcher supports the following options.table.scan.dispatcher.opts.executor=<scan executor name>: dispatches all scans to the named executor.table.scan.dispatcher.opts.multi_executor=<scan executor name>: dispatches batch scans to the named executor.table.scan.dispatcher.opts.single_executor=<scan executor name>: dispatches regular scans to the named executor.table.scan.dispatcher.opts.executor.<type>=<scan executor name>: dispatches scans that set the hintscan_type=<type>to the named executor. If this setting matches then it takes precedence over all other settings. SeeScannerBase.setExecutionHints(Map)
multi_executorandsingle_executoroptions override theexecutoroption.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.scan.ScanDispatcher
ScanDispatcher.DispatchParmaters, ScanDispatcher.InitParameters
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SCAN_EXECUTOR_NAME
-
Constructor Summary
Constructors Constructor Description SimpleScanDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdispatch(ScanDispatcher.DispatchParmaters params)voidinit(ScanDispatcher.InitParameters params)This method is called once after a ScanDispatcher is instantiated.
-
-
-
Field Detail
-
DEFAULT_SCAN_EXECUTOR_NAME
public static final String DEFAULT_SCAN_EXECUTOR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(ScanDispatcher.InitParameters params)
Description copied from interface:ScanDispatcherThis method is called once after a ScanDispatcher is instantiated.- Specified by:
initin interfaceScanDispatcher
-
dispatch
public String dispatch(ScanDispatcher.DispatchParmaters params)
- Specified by:
dispatchin interfaceScanDispatcher- Returns:
- Should return one of the executors named params.getScanExecutors().keySet()
-
-