public enum NodeAllocationStrategy extends Enum<NodeAllocationStrategy>
Enum Constant and Description |
---|
FULL
Allocate all cores on all nodes
|
NARROW_FIRST
Allocate up to the number of processors on each node until all nodes allocated or until the specified
parallelism is reached
|
WIDE_FIRST
Allocate round-robin across the cluster until we've allocated the specified number of pipelines
|
Modifier and Type | Method and Description |
---|---|
abstract NodePartitionPlan |
allocate(List<NodeResourceState> ordered,
int numPipelines,
ResourceAllocation partitionUsage) |
static NodeAllocationStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeAllocationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeAllocationStrategy WIDE_FIRST
public static final NodeAllocationStrategy NARROW_FIRST
public static final NodeAllocationStrategy FULL
public static NodeAllocationStrategy[] values()
for (NodeAllocationStrategy c : NodeAllocationStrategy.values()) System.out.println(c);
public static NodeAllocationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic abstract NodePartitionPlan allocate(List<NodeResourceState> ordered, int numPipelines, ResourceAllocation partitionUsage)
Copyright © 2016 Actian Corporation. All Rights Reserved.