Class MemoryPageUtils<T>

java.lang.Object
org.apache.hadoop.yarn.client.util.MemoryPageUtils<T>

public class MemoryPageUtils<T> extends Object
This is a memory paging utility that is used to paginate a dataset. This class is designed to support batch entry queue policies.
  • Constructor Details

    • MemoryPageUtils

      public MemoryPageUtils(int pageSize)
      MemoryPageUtils constructor.
      Parameters:
      pageSize - Number of records returned per page.
  • Method Details

    • addToMemory

      public void addToMemory(T data)
    • readFromMemory

      public List<T> readFromMemory(int pageNumber)
    • getPages

      public int getPages()