Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 812 Bytes

spark-mllib-HasParallelism.adoc

File metadata and controls

30 lines (21 loc) · 812 Bytes

HasParallelism

HasParallelism is a Scala trait for Spark MLlib components that allow for specifying the level of parallelism for multi-threaded execution and provide a thread-pool-based execution context.

HasParallelism defines parallelism parameter that controls the number of threads in a cached thread pool.

Table 1. HasParallelism' Parameters
Parameter Default Value Description

parallelism

1

The number of threads to use when running parallel algorithms

Must be at least 1.

getExecutionContext Method

getExecutionContext: ExecutionContext

getExecutionContext…​FIXME

Note
getExecutionContext is used when…​FIXME