@InterfaceAudience.Private public class PlacementConstraintToProtoConverter extends Object implements org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
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() |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.And constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.CardinalityConstraint constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOr constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.Or constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraint constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint constraint) |
com.google.protobuf.GeneratedMessage |
visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression target) |
com.google.protobuf.GeneratedMessage |
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 com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.SingleConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression target)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.CardinalityConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.And constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.Or constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.DelayedOr constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
public com.google.protobuf.GeneratedMessage visit(org.apache.hadoop.yarn.api.resource.PlacementConstraint.TimedPlacementConstraint constraint)
visit
in interface org.apache.hadoop.yarn.api.resource.PlacementConstraint.Visitor<com.google.protobuf.GeneratedMessage>
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.