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 TypeMethodDescriptionvoid
close()
Closes this result set releasing any sub-resources it holds.static ResultSet
createResultSet
(cz.cvut.kbss.owl2query.model.QueryResult<org.semanticweb.owlapi.model.OWLObject> result, Statement statement, String query) Retrieves theStatement
that produced thisResultSet
object.boolean
isOpen()
Retrieves status of this result set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.cvut.kbss.ontodriver.ResultSet
findColumn, first, getBoolean, getBoolean, getByte, getByte, getColumnCount, 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:ResultSet
Retrieves theStatement
that produced thisResultSet
object. If this result set was generated some other way, this method will returnnull
.- Specified by:
getStatement
in interfaceResultSet
- Returns:
- The
Statement
that produced thisResultSet
or null
-
close
public void close()Description copied from interface:ResultSet
Closes 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
close
andisOpen
) will result inOntoDriverException
.Calling
close
on 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultSet
-
isOpen
public boolean isOpen()Description copied from interface:ResultSet
Retrieves status of this result set. -
createResultSet
-