Class SimpleScanDispatcher
java.lang.Object
org.apache.accumulo.core.spi.scan.SimpleScanDispatcher
- All Implemented Interfaces:
ScanDispatcher
If no options are given, then this will default to an executor named
default
and
ScanDispatch.CacheUsage.TABLE
for index and data cache. 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)
table.scan.dispatcher.opts.cacheUsage.<type>[.index|.data]=enabled|disabled|opportunistic|table
: for scans that set the hintscan_type=<type>
determines how the scan will use cache.
multi_executor
and single_executor
options override the executor
option.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.accumulo.core.spi.scan.ScanDispatcher
ScanDispatcher.DispatchParameters, ScanDispatcher.InitParameters
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAccumulo calls this method for each scan batch to determine what executor to use and how to utilize cache for the scan.void
init
(ScanDispatcher.InitParameters params) This method is called once after a ScanDispatcher is instantiated.
-
Field Details
-
DEFAULT_SCAN_EXECUTOR_NAME
- See Also:
-
-
Constructor Details
-
SimpleScanDispatcher
public SimpleScanDispatcher()
-
-
Method Details
-
init
Description copied from interface:ScanDispatcher
This method is called once after a ScanDispatcher is instantiated.- Specified by:
init
in interfaceScanDispatcher
-
dispatch
Description copied from interface:ScanDispatcher
Accumulo calls this method for each scan batch to determine what executor to use and how to utilize cache for the scan.- Specified by:
dispatch
in interfaceScanDispatcher
-