Interface ScanDispatcher
- All Known Implementing Classes:
SimpleScanDispatcher
public interface ScanDispatcher
A per table scan dispatcher that decides which executor should be used to process a scan. For
information about configuring, find the documentation for the
table.scan.dispatcher
and
table.scan.dispatcher.opts.
properties.- Since:
- 2.0.0
- See Also:
-
org.apache.accumulo.core.spi
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The method parameters fordispatch(DispatchParameters)
.static interface
Deprecated.static interface
The method parameters forinit(InitParameters)
. -
Method Summary
Modifier and TypeMethodDescriptiondefault ScanDispatch
Accumulo calls this method for each scan batch to determine what executor to use and how to utilize cache for the scan.default String
Deprecated.since 2.1.0 please implementdispatch(DispatchParameters)
instead of this.default void
init
(ScanDispatcher.InitParameters params) This method is called once after a ScanDispatcher is instantiated.
-
Method Details
-
init
This method is called once after a ScanDispatcher is instantiated. -
dispatch
Deprecated.since 2.1.0 please implementdispatch(DispatchParameters)
instead of this. Accumulo will only calldispatch(DispatchParameters)
directly, it will never call this. However the default implementation ofdispatch(DispatchParameters)
calls this method.- Returns:
- Should return one of the executors named params.getScanExecutors().keySet()
-
dispatch
Accumulo calls this method for each scan batch to determine what executor to use and how to utilize cache for the scan.- Since:
- 2.1.0
-
ScanDispatcher.DispatchParameters
anddispatch(DispatchParameters)