Package org.apache.spark.resource
Class ResourceRequest
Object
org.apache.spark.resource.ResourceRequest
Class that represents a resource request.
The class used when discovering resources (using the discovery script), or via the context as it is parsing configuration for the ResourceID.
param: id object identifying the resource param: amount integer amount for the resource. Note that for a request (executor level), fractional resources does not make sense, so amount is an integer. param: discoveryScript optional discovery script file name param: vendor optional vendor name
- Since:
- 3.0.0
-
Constructor Summary
ConstructorDescriptionResourceRequest
(ResourceID id, long amount, Optional<String> discoveryScript, Optional<String> vendor) -
Method Summary
-
Constructor Details
-
ResourceRequest
public ResourceRequest(ResourceID id, long amount, Optional<String> discoveryScript, Optional<String> vendor)
-
-
Method Details