## Uses of Class
org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression

- Packages that use PlacementConstraint.TargetExpression
  Package | Description
  --- | ---
  org.apache.hadoop.yarn.api.resource | API related to resources.

- - ### Uses of PlacementConstraint.TargetExpression in org.apache.hadoop.yarn.api.resource

    Methods in org.apache.hadoop.yarn.api.resource that return PlacementConstraint.TargetExpression
    Modifier and Type | Method and Description
    --- | ---
    `static PlacementConstraint.TargetExpression` | PlacementConstraints.PlacementTargets.`allocationTag(String... allocationTags)` Constructs a target expression on an allocation tag.
    `static PlacementConstraint.TargetExpression` | PlacementConstraints.PlacementTargets.`allocationTagWithNamespace(String namespace, String... allocationTags)` Constructs a target expression on a set of allocation tags under a certain namespace.
    `static PlacementConstraint.TargetExpression` | PlacementConstraints.PlacementTargets.`nodeAttribute(String attributeKey, String... attributeValues)` Constructs a target expression on a node attribute.
    `static PlacementConstraint.TargetExpression` | PlacementConstraints.PlacementTargets.`nodePartition(String... nodePartitions)` Constructs a target expression on a node partition.

    Methods in org.apache.hadoop.yarn.api.resource that return types with arguments of type PlacementConstraint.TargetExpression
    Modifier and Type | Method and Description
    --- | ---
    `Set<PlacementConstraint.TargetExpression>` | PlacementConstraint.SingleConstraint.`getTargetExpressions()` Get the target expressions of the constraint.
    `Set<PlacementConstraint.TargetExpression>` | PlacementConstraint.TargetConstraint.`getTargetExpressions()` Get the set of target expressions.

    Methods in org.apache.hadoop.yarn.api.resource with parameters of type PlacementConstraint.TargetExpression
    Modifier and Type | Method and Description
    --- | ---
    `static PlacementConstraint.AbstractConstraint` | PlacementConstraints.`targetCardinality(String scope, int minCardinality, int maxCardinality, PlacementConstraint.TargetExpression... targetExpressions)` This constraint generalizes the cardinality and target constraints.
    `static PlacementConstraint.AbstractConstraint` | PlacementConstraints.`targetIn(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(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(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)`

    Constructors in org.apache.hadoop.yarn.api.resource with parameters of type PlacementConstraint.TargetExpression
    Constructor and Description
    `SingleConstraint(String scope, int minC, int maxC, NodeAttributeOpCode opCode, PlacementConstraint.TargetExpression... targetExpressions)`
    `SingleConstraint(String scope, int minC, int maxC, PlacementConstraint.TargetExpression... targetExpressions)`

    Constructor parameters in org.apache.hadoop.yarn.api.resource with type arguments of type PlacementConstraint.TargetExpression
    Constructor and Description
    `SingleConstraint(String scope, int minCardinality, int maxCardinality, NodeAttributeOpCode opCode, Set<PlacementConstraint.TargetExpression> targetExpressions)`
    `SingleConstraint(String scope, int minCardinality, int maxCardinality, Set<PlacementConstraint.TargetExpression> targetExpressions)`
    `TargetConstraint(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint.TargetOperator op, String scope, Set<PlacementConstraint.TargetExpression> targetExpressions)`

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.