Class StatementResult
java.lang.Object
tech.oxfordsemantic.jrdfox.client.StatementResult
public class StatementResult
extends java.lang.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
getNumberOfAttemptedDeletions()
Returns the number of tuples the statement tried to delete.long
getNumberOfAttemptedInsertions()
Returns the number of tuples the statement tried to insert.long
getNumberOfDeletions()
Returns the number of tuples actually deleted by the statement.long
getNumberOfInsertions()
Returns the number of tuples actually inserted by the statement.long
getNumberOfQueryAnswers()
Returns the number of individual answers that the query produced: answers returned with multiplicity more than one are counted just once.boolean
getStatementTypeSupportsDeletions()
Returns a boolean indicating whether the statement type supports deletions.boolean
getStatementTypeSupportsInsertions()
Returns a boolean indicating whether the statement type supports insertions.boolean
getStatementTypeSupportsUserQuery()
Returns a boolean indicating whether the statement type supports a query body.long
getTotalNumberOfQueryAnswers()
Returns the total number of answers to a query and is equal to the sum of the multiplicities of all answers.

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 returnfalse
isINSERT DATA { ... }
. Returns:
true
if the statement type supports a query body, otherwisefalse

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, otherwisefalse

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, otherwisefalse

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
