Class AbstractResultSet
java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.query.AbstractResultSet
- All Implemented Interfaces:
ResultSet,AutoCloseable,Iterable<ResultRow>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this result set releasing any sub-resources it holds.static ResultSetcreateResultSet(cz.cvut.kbss.owl2query.model.QueryResult<org.semanticweb.owlapi.model.OWLObject> result, Statement statement, String query) Retrieves theStatementthat produced thisResultSetobject.booleanisOpen()Retrieves status of this result set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.cvut.kbss.ontodriver.ResultSet
findColumn, first, getBoolean, getBoolean, getByte, getByte, getColumnCount, getColumnNames, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRowIndex, getShort, getShort, getString, getString, hasNext, isBound, isBound, isFirst, iterator, last, next, previous, relative, setRowIndex, spliterator, stream
-
Constructor Details
-
AbstractResultSet
-
-
Method Details
-
getStatement
Description copied from interface:ResultSetRetrieves theStatementthat produced thisResultSetobject. If this result set was generated some other way, this method will returnnull.- Specified by:
getStatementin interfaceResultSet- Returns:
- The
Statementthat produced thisResultSetor null
-
close
public void close()Description copied from interface:ResultSetCloses this result set releasing any sub-resources it holds.After closing the result set is not usable any more and calling methods on it (except
closeandisOpen) will result inOntoDriverException.Calling
closeon already closed resource does nothing.Calling this method also results in immediate disconnection of all registered observers and cancellation of any running reasoning associated with this result set.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResultSet
-
isOpen
public boolean isOpen()Description copied from interface:ResultSetRetrieves status of this result set. -
createResultSet
-