use of io.dingodb.calcite.JobRunner in project dingo by dingodb.
the class DingoResultSet method getIterator.
Iterator<Object[]> getIterator() {
if (iterator == null) {
DingoSignature dingoSignature = (DingoSignature) signature;
Job job = dingoSignature.getJob();
Enumerator<Object[]> enumerator = new JobRunner(job).createEnumerator();
iterator = Linq4j.enumeratorIterator(enumerator);
try {
setFetchSize(1);
} catch (SQLException e) {
e.printStackTrace();
}
}
return iterator;
}
Aggregations