Class PageRowLimitingIterator

java.lang.Object
org.elasticsearch.compute.operator.PageRowLimitingIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Page>, CloseableIterator<Page>

public class PageRowLimitingIterator extends Object implements CloseableIterator<Page>
Wrapper around CloseableIterator of Pages that stops yielding pages once a cumulative row budget is exhausted. When the last page would overshoot the budget, it is trimmed to the exact remaining count.