/** * @see AgnosticIterator for caveats on use. * Note this expects to be called by visitAndClose()! If not, the timer will never get * initialized and close() will throw an exception. */ @Override public Iterator<AgnosticLightResultRow> iterator() { this.timerKey = sqlTimerFactory.start(timingModule, sqlString.getKey(), sqlString.getQuery()); return new AgnosticIterator(); }
@Override public boolean hasNext() { if (hasReadRow) { advanceRow(); } return hasNext; }
@Override public AgnosticLightResultRow next() { if (hasReadRow) { advanceRow(); } hasReadRow = true; return singletonResultRow; }
@Override public boolean hasNext() { if (hasReadRow) { advanceRow(); } return hasNext; }
@Override public AgnosticLightResultRow next() { if (hasReadRow) { advanceRow(); } hasReadRow = true; return singletonResultRow; }
/** * @see AgnosticIterator for caveats on use. * Note this expects to be called by visitAndClose()! If not, the timer will never get * initialized and close() will throw an exception. */ @Override public Iterator<AgnosticLightResultRow> iterator() { this.timerKey = sqlTimerFactory.start(timingModule, sqlString.getKey(), sqlString.getQuery()); return new AgnosticIterator(); }