关注 spark技术分享,
撸spark源码 玩spark最佳实践

HasParallelism

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…​FIXME

Note
getExecutionContext is used when…​FIXME
赞(0) 打赏
未经允许不得转载:spark技术分享 » HasParallelism
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏