Class AllocationTagsManager.TypeToCountedTags<T>
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.AllocationTagsManager.TypeToCountedTags<T>
- Enclosing class:
- AllocationTagsManager
Generic store mapping type T to counted tags.
Currently used both for NodeId to Tag, Count and Rack to Tag, Count
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAbsorbs the givenAllocationTagsManager.TypeToCountedTagsto current mapping, this will aggregate the count of the tags with same name.protected AllocationTagsManager.TypeToCountedTags
-
Constructor Details
-
TypeToCountedTags
public TypeToCountedTags()
-
-
Method Details
-
getTypeToTagsWithCount
-
absorb
Absorbs the givenAllocationTagsManager.TypeToCountedTagsto current mapping, this will aggregate the count of the tags with same name.- Parameters:
target- aAllocationTagsManager.TypeToCountedTagsto merge with.
-
immutableCopy
- Returns:
- an immutable copy of current instance.
-