| Package | Description |
|---|---|
| org.apache.hadoop.yarn.api.records |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.hadoop.yarn.api.resource |
API related to resources.
|
| Modifier and Type | Method | Description |
|---|---|---|
static NodeAttributeOpCode |
NodeAttributeOpCode.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static NodeAttributeOpCode[] |
NodeAttributeOpCode.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
NodeAttributeOpCode |
PlacementConstraint.SingleConstraint.getNodeAttributeOpCode() |
Get the NodeAttributeOpCode of the constraint.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
| Constructor | Description |
|---|---|
SingleConstraint(java.lang.String scope,
int minCardinality,
int maxCardinality,
NodeAttributeOpCode opCode,
java.util.Set<PlacementConstraint.TargetExpression> targetExpressions) |
|
SingleConstraint(java.lang.String scope,
int minC,
int maxC,
NodeAttributeOpCode opCode,
PlacementConstraint.TargetExpression... targetExpressions) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.