@InterfaceAudience.Private public class PlacementConstraintToProtoConverter extends Object implements org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
PlacementConstraintToProtoConverter
generates a
YarnProtos.PlacementConstraintProto
given a
PlacementConstraint.AbstractConstraint
.Constructor and Description |
---|
PlacementConstraintToProtoConverter(org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintProto |
convert() |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.And constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.CardinalityConstraint constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOr constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.Or constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraint constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint constraint) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression target) |
org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TimedPlacementConstraint constraint) |
public PlacementConstraintToProtoConverter(org.apache.hadoop.yarn.api.resource.PlacementConstraint placementConstraint)
public org.apache.hadoop.yarn.proto.YarnProtos.PlacementConstraintProto convert()
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression target)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.CardinalityConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.And constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.Or constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOr constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
public org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3 visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TimedPlacementConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<org.apache.hadoop.thirdparty.protobuf.GeneratedMessageV3>
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.