@Override public Page getOutput() { Page page = exchangeClient.pollPage(); if (page != null) { operatorContext.recordGeneratedInput(page.getSizeInBytes(), page.getPositionCount()); } return page; }
@Override public Page getOutput() { if (!pages.hasNext()) { return null; } Page page = pages.next(); if (page != null) { operatorContext.recordGeneratedInput(page.getSizeInBytes(), page.getPositionCount()); } return page; }