Class MemoryPageUtils<T>
java.lang.Object
org.apache.hadoop.yarn.client.util.MemoryPageUtils<T>
This is a memory paging utility that is used to paginate a dataset.
This class is designed to support batch entry queue policies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToMemory(T data) intgetPages()readFromMemory(int pageNumber)
-
Constructor Details
-
MemoryPageUtils
public MemoryPageUtils(int pageSize) MemoryPageUtils constructor.- Parameters:
pageSize- Number of records returned per page.
-
-
Method Details
-
addToMemory
-
readFromMemory
-
getPages
public int getPages()
-