public final class NodeLabelUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
checkAndThrowAttributeName(java.lang.String attributeName) |
|
static void |
checkAndThrowAttributePrefix(java.lang.String prefix) |
|
static void |
checkAndThrowAttributeValue(java.lang.String value) |
|
static void |
checkAndThrowLabelName(java.lang.String label) |
|
static java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> |
filterAttributesByPrefix(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet,
java.lang.String prefix) |
Filter a set of node attributes by a given prefix.
|
static boolean |
isNodeAttributesEquals(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> leftNodeAttributes,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> rightNodeAttributes) |
Are these two input node attributes the same.
|
static void |
validateNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet) |
Validate if a given set of attributes are valid.
|
public static void checkAndThrowLabelName(java.lang.String label)
throws java.io.IOException
java.io.IOExceptionpublic static void checkAndThrowAttributeName(java.lang.String attributeName)
throws java.io.IOException
java.io.IOExceptionpublic static void checkAndThrowAttributeValue(java.lang.String value)
throws java.io.IOException
java.io.IOExceptionpublic static void checkAndThrowAttributePrefix(java.lang.String prefix)
throws java.io.IOException
java.io.IOExceptionpublic static void validateNodeAttributes(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet)
throws java.io.IOException
attributeSet - node attribute set.java.io.IOException - io error occur.public static java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> filterAttributesByPrefix(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> attributeSet,
java.lang.String prefix)
attributeSet - node attribute setprefix - node attribute prefixpublic static boolean isNodeAttributesEquals(java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> leftNodeAttributes,
java.util.Set<org.apache.hadoop.yarn.api.records.NodeAttribute> rightNodeAttributes)
leftNodeAttributes - left node attribute.rightNodeAttributes - right node attribute.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.