Search in sources :

Example 1 with Cursor

use of org.apache.calcite.avatica.util.Cursor in project calcite-avatica by apache.

the class AvaticaResultSet method close.

public void close() {
    closed = true;
    final Cursor cursor = this.cursor;
    if (cursor != null) {
        this.cursor = null;
        cursor.close();
    }
    statement.onResultSetClose(this);
// TODO: for timeout, see IteratorResultSet.close
/*
        if (timeoutCursor != null) {
            final long noTimeout = 0;
            timeoutCursor.close(noTimeout);
            timeoutCursor = null;
        }
*/
}
Also used : Cursor(org.apache.calcite.avatica.util.Cursor)

Aggregations

Cursor (org.apache.calcite.avatica.util.Cursor)1