use of org.apache.phoenix.iterate.CursorResultIterator in project phoenix by apache.
the class CursorFetchPlan method iterator.
@Override
public ResultIterator iterator(ParallelScanGrouper scanGrouper, Scan scan) throws SQLException {
StatementContext context = delegate.getContext();
if (resultIterator == null) {
context.getOverallQueryMetrics().startQuery();
resultIterator = new CursorResultIterator(LookAheadResultIterator.wrap(delegate.iterator(scanGrouper, scan)), cursorName);
}
return resultIterator;
}
Aggregations