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.DispatchParmaters, ScanDispatcher.InitParameters -
Field Summary
Fields -
Constructor Summary
Constructors -
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.voidinit(ScanDispatcher.InitParameters params) This method is called once after a ScanDispatcher is instantiated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.accumulo.core.spi.scan.ScanDispatcher
dispatch
-
Field Details
-
DEFAULT_SCAN_EXECUTOR_NAME
- See Also:
-
-
Constructor Details
-
SimpleScanDispatcher
public SimpleScanDispatcher()
-
-
Method Details
-
init
Description copied from interface:ScanDispatcherThis method is called once after a ScanDispatcher is instantiated.- Specified by:
initin interfaceScanDispatcher
-
dispatch
Description copied from interface:ScanDispatcherAccumulo calls this method for each scan batch to determine what executor to use and how to utilize cache for the scan.- Specified by:
dispatchin interfaceScanDispatcher
-