Search in sources :

Example 1 with JobRunner

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;
}
Also used : JobRunner(io.dingodb.calcite.JobRunner) SQLException(java.sql.SQLException) Job(io.dingodb.exec.base.Job)

Aggregations

JobRunner (io.dingodb.calcite.JobRunner)1 Job (io.dingodb.exec.base.Job)1 SQLException (java.sql.SQLException)1