public static final class PlacementConstraintParser.SourceTags extends Object
Modifier and Type | Method and Description |
---|---|
static PlacementConstraintParser.SourceTags |
emptySourceTags() |
int |
getNumOfAllocations() |
String |
getTag() |
boolean |
isEmpty() |
static PlacementConstraintParser.SourceTags |
parseFrom(String expr)
Parses source tags from expression "sourceTags(numOfAllocations)".
|
public static PlacementConstraintParser.SourceTags emptySourceTags()
public boolean isEmpty()
public String getTag()
public int getNumOfAllocations()
public static PlacementConstraintParser.SourceTags parseFrom(String expr) throws PlacementConstraintParseException
expr
- expression string.PlacementConstraintParser.SourceTags
PlacementConstraintParseException
- when the placement constraint parser
fails to parse an expression.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.