Class StatementResult

java.lang.Object
tech.oxfordsemantic.jrdfox.client.StatementResult

public class StatementResult extends Object
Summarises the result of statement evaluation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatementResult(boolean statementTypeSupportsUserQuery, long numberOfQueryAnswers, long totalNumberOfQueryAnswers, boolean statementTypeSupportsDeletions, long numberOfAttemptedDeletions, long numberOfQueryAnswersDeleted, boolean statementTypeSupportsInsertions, long numberOfAttemptedInsertions, long numberOfQueryAnswersInserted)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of tuples the statement tried to delete.
    long
    Returns the number of tuples the statement tried to insert.
    long
    Returns the number of tuples actually deleted by the statement.
    long
    Returns the number of tuples actually inserted by the statement.
    long
    Returns the number of individual answers that the query produced: answers returned with multiplicity more than one are counted just once.
    boolean
    Returns a boolean indicating whether the statement type supports deletions.
    boolean
    Returns a boolean indicating whether the statement type supports insertions.
    boolean
    Returns a boolean indicating whether the statement type supports a query body.
    long
    Returns the total number of answers to a query and is equal to the sum of the multiplicities of all answers.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StatementResult

      public StatementResult(boolean statementTypeSupportsUserQuery, long numberOfQueryAnswers, long totalNumberOfQueryAnswers, boolean statementTypeSupportsDeletions, long numberOfAttemptedDeletions, long numberOfQueryAnswersDeleted, boolean statementTypeSupportsInsertions, long numberOfAttemptedInsertions, long numberOfQueryAnswersInserted)
  • Method Details

    • getStatementTypeSupportsUserQuery

      public boolean getStatementTypeSupportsUserQuery()
      Returns a boolean indicating whether the statement type supports a query body. An example of a statement for which this would return false is INSERT DATA { ... }.
      Returns:
      true if the statement type supports a query body, otherwise false
    • getNumberOfQueryAnswers

      public long getNumberOfQueryAnswers()
      Returns the number of individual answers that the query produced: answers returned with multiplicity more than one are counted just once.
      Returns:
      the number of individual answers to a query
    • getTotalNumberOfQueryAnswers

      public long getTotalNumberOfQueryAnswers()
      Returns the total number of answers to a query and is equal to the sum of the multiplicities of all answers.
      Returns:
      the total number of answers to a query
    • getStatementTypeSupportsDeletions

      public boolean getStatementTypeSupportsDeletions()
      Returns a boolean indicating whether the statement type supports deletions.
      Returns:
      true if the type of the statement supports deletions, otherwise false
    • getNumberOfAttemptedDeletions

      public long getNumberOfAttemptedDeletions()
      Returns the number of tuples the statement tried to delete. This is the sum of the number of tuples actually deleted and the number of tuples for which deletion was attempted but which were already absent at the time of the deletion attempt.
      Returns:
      the number of tuples the statement tried to delete
    • getNumberOfDeletions

      public long getNumberOfDeletions()
      Returns the number of tuples actually deleted by the statement.
      Returns:
      the total number of tuples deleted by the statement
    • getStatementTypeSupportsInsertions

      public boolean getStatementTypeSupportsInsertions()
      Returns a boolean indicating whether the statement type supports insertions.
      Returns:
      true if the type of the statement supports insertions, otherwise false
    • getNumberOfAttemptedInsertions

      public long getNumberOfAttemptedInsertions()
      Returns the number of tuples the statement tried to insert. This is the sum of the number of tuples actually inserted and the number of tuples for which insertion was attempted but which were already present at the time of the insertion attempt.
      Returns:
      the number of tuples the statement tried to insert
    • getNumberOfInsertions

      public long getNumberOfInsertions()
      Returns the number of tuples actually inserted by the statement.
      Returns:
      the total number of tuples inserted by the statement