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

public class SerialIterator extends Object implements Iterator<org.apache.hadoop.yarn.api.records.SchedulingRequest>
Traverse Scheduling Requests in the same order as they arrive
  • Constructor Details

    • SerialIterator

      public SerialIterator(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>