public interface HasParallelism extends Params
Modifier and Type | Method and Description |
---|---|
scala.concurrent.ExecutionContext |
getExecutionContext()
Create a new execution context with a thread-pool that has a maximum number of threads
set to the value of
parallelism . |
int |
getParallelism() |
IntParam |
parallelism()
The number of threads to use when running parallel algorithms.
|
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString, uid
scala.concurrent.ExecutionContext getExecutionContext()
parallelism
. If this param is set to 1, a same-thread executor
will be used to run in serial.int getParallelism()
IntParam parallelism()