Package org.apache.spark.resource
Class ResourceProfileBuilder
Object
org.apache.spark.resource.ResourceProfileBuilder
Resource profile builder to build a
ResourceProfile
to associate with an RDD.
A ResourceProfile
allows the user to specify executor and task resource requirements
for an RDD that will get applied during a stage. This allows the user to change the resource
requirements between stages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
scala.collection.immutable.Map<String,
ExecutorResourceRequest> (Java-specific) gets a Java Map of resources to ExecutorResourceRequestrequire
(ExecutorResourceRequests requests) Add executor resource requestsrequire
(TaskResourceRequests requests) Add task resource requestsscala.collection.immutable.Map<String,
TaskResourceRequest> (Java-specific) gets a Java Map of resources to TaskResourceRequesttoString()
-
Constructor Details
-
ResourceProfileBuilder
public ResourceProfileBuilder()
-
-
Method Details
-
build
-
clearExecutorResourceRequests
-
clearTaskResourceRequests
-
executorResources
-
executorResourcesJMap
(Java-specific) gets a Java Map of resources to ExecutorResourceRequest- Returns:
- (undocumented)
-
require
Add executor resource requests- Parameters:
requests
- The detailed executor resource requests, seeExecutorResourceRequests
- Returns:
- This ResourceProfileBuilder
-
require
Add task resource requests- Parameters:
requests
- The detailed task resource requests, seeTaskResourceRequest
- Returns:
- This ResourceProfileBuilder
-
taskResources
-
taskResourcesJMap
(Java-specific) gets a Java Map of resources to TaskResourceRequest- Returns:
- (undocumented)
-
toString
-