Class AbstractResultSet

java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.query.AbstractResultSet
All Implemented Interfaces:
ResultSet, AutoCloseable, Iterable<ResultRow>

public abstract class AbstractResultSet extends Object implements ResultSet
  • Constructor Details

    • AbstractResultSet

      protected AbstractResultSet(Statement statement)
  • Method Details

    • getStatement

      public Statement getStatement()
      Description copied from interface: ResultSet
      Retrieves the Statement that produced this ResultSet object. If this result set was generated some other way, this method will return null.
      Specified by:
      getStatement in interface ResultSet
      Returns:
      The Statement that produced this ResultSet 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 and isOpen) will result in OntoDriverException.

      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 interface AutoCloseable
      Specified by:
      close in interface ResultSet
    • isOpen

      public boolean isOpen()
      Description copied from interface: ResultSet
      Retrieves status of this result set.
      Specified by:
      isOpen in interface ResultSet
      Returns:
      true if the resource is open, false otherwise
    • createResultSet

      public static ResultSet createResultSet(cz.cvut.kbss.owl2query.model.QueryResult<org.semanticweb.owlapi.model.OWLObject> result, Statement statement, String query)