public final class ResourceSpecifier extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ResourceSpecifier |
UNSPECIFIED
Default, unspecified resources
|
Modifier and Type | Method and Description |
---|---|
ResourceAllocation |
masterResources() |
ResourceSpecifier |
masterResources(ResourceAllocation resources)
Returns a resource specifier applying the specified allocation for
job master resources
|
int |
maximumParallelism() |
ResourceSpecifier |
maximumParallelism(int partitions)
Returns a resource specifier with the given specified maximum parallelism
|
int |
minimumParallelism() |
ResourceSpecifier |
minimumParallelism(int partitions)
Returns a resource specifier with the given specified minimum parallelism
|
int |
parallelism() |
ResourceSpecifier |
parallelism(int parallelism)
Returns a resource specifier with the given specified parallelism
|
static ResourceSpecifier |
PARALLELISM(int parallelism)
Specifies the parallelism
|
ResourceAllocation |
partitionResources() |
ResourceSpecifier |
partitionResources(ResourceAllocation resources)
Returns a resource specifier applying the specified allocation for
per-partition resources
|
public static ResourceSpecifier UNSPECIFIED
public static ResourceSpecifier PARALLELISM(int parallelism)
the
- desired parallelismpublic int parallelism()
public int minimumParallelism()
public int maximumParallelism()
public ResourceAllocation masterResources()
public ResourceAllocation partitionResources()
public ResourceSpecifier parallelism(int parallelism)
parallelism
- the parallelism to requestpublic ResourceSpecifier minimumParallelism(int partitions)
partitions
- the minimal number of partitions to acquirepublic ResourceSpecifier maximumParallelism(int partitions)
partitions
- the maximum number of partitions to acquirepublic ResourceSpecifier masterResources(ResourceAllocation resources)
resources
- the resources to requestpublic ResourceSpecifier partitionResources(ResourceAllocation resources)
resources
- the resources to requestCopyright © 2020 Actian Corporation. All rights reserved.