java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.constraint.algorithm.iterators.PopularTagsIterator
All Implemented Interfaces:
Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest>

public class PopularTagsIterator extends Object implements Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest>
Traverse Scheduling requests with the most popular tags (count) first. Currently the count is per Batch but could use TagManager for global count.
  • Constructor Details

    • PopularTagsIterator

      public PopularTagsIterator(Collection<org.apache.hadoop.yarn.api.records.SchedulingRequest> schedulingRequests)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest>
    • next

      public org.apache.hadoop.yarn.api.records.SchedulingRequest next()
      Specified by:
      next in interface Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest>