| Package | Description |
|---|---|
| org.apache.hadoop.yarn.api.resource |
API related to resources.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.allocationTag(java.lang.String... allocationTags) |
Constructs a target expression on an allocation tag.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.allocationTagWithNamespace(java.lang.String namespace,
java.lang.String... allocationTags) |
Constructs a target expression on a set of allocation tags under
a certain namespace.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.nodeAttribute(java.lang.String attributeKey,
java.lang.String... attributeValues) |
Constructs a target expression on a node attribute.
|
static PlacementConstraint.TargetExpression |
PlacementConstraints.PlacementTargets.nodePartition(java.lang.String... nodePartitions) |
Constructs a target expression on a node partition.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<PlacementConstraint.TargetExpression> |
PlacementConstraint.SingleConstraint.getTargetExpressions() |
Get the target expressions of the constraint.
|
java.util.Set<PlacementConstraint.TargetExpression> |
PlacementConstraint.TargetConstraint.getTargetExpressions() |
Get the set of target expressions.
|
| Modifier and Type | Method | Description |
|---|---|---|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetCardinality(java.lang.String scope,
int minCardinality,
int maxCardinality,
PlacementConstraint.TargetExpression... targetExpressions) |
This constraint generalizes the cardinality and target constraints.
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetIn(java.lang.String scope,
PlacementConstraint.TargetExpression... targetExpressions) |
Creates a constraint that requires allocations to be placed on nodes that
satisfy all target expressions within the given scope (e.g., node or rack).
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetNodeAttribute(java.lang.String scope,
NodeAttributeOpCode opCode,
PlacementConstraint.TargetExpression... targetExpressions) |
Creates a constraint that requires allocations to be placed on nodes that
belong to a scope (e.g., node or rack) that satisfy any of the
target expressions based on node attribute op code.
|
static PlacementConstraint.AbstractConstraint |
PlacementConstraints.targetNotIn(java.lang.String scope,
PlacementConstraint.TargetExpression... targetExpressions) |
Creates a constraint that requires allocations to be placed on nodes that
belong to a scope (e.g., node or rack) that does not satisfy any of the
target expressions.
|
T |
PlacementConstraint.Visitor.visit(PlacementConstraint.TargetExpression target) |
| Constructor | Description |
|---|---|
SingleConstraint(java.lang.String scope,
int minC,
int maxC,
NodeAttributeOpCode opCode,
PlacementConstraint.TargetExpression... targetExpressions) |
|
SingleConstraint(java.lang.String scope,
int minC,
int maxC,
PlacementConstraint.TargetExpression... targetExpressions) |
| Constructor | Description |
|---|---|
SingleConstraint(java.lang.String scope,
int minCardinality,
int maxCardinality,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions) |
|
SingleConstraint(java.lang.String scope,
int minCardinality,
int maxCardinality,
NodeAttributeOpCode opCode,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions) |
|
TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op,
java.lang.String scope,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.