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;
}
*/
}
Aggregations