Class QueryResult

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

public class QueryResult
extends java.lang.Object
Summaries the result of query evaluation.
  • Constructor Summary

    Constructors 
    Constructor Description
    QueryResult​(long numberOfTuples, long totalNumberOfTuples)  
  • Method Summary

    Modifier and Type Method Description
    long getNumberOfTuples()
    Returns the number of individual answers that the query produced: answers returned with multiplicity more than one are counted just once.
    long getTotalNumberOfTuples()
    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 java.lang.Object

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

    • QueryResult

      public QueryResult​(long numberOfTuples, long totalNumberOfTuples)
  • Method Details

    • getNumberOfTuples

      public long getNumberOfTuples()
      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
    • getTotalNumberOfTuples

      public long getTotalNumberOfTuples()
      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