info.aduna.autofocus.model
Class QueryResult

java.lang.Object
  extended by info.aduna.autofocus.model.QueryResult
All Implemented Interfaces:
Classification, ResultListener, TableResultListener

public class QueryResult
extends Object
implements Classification, TableResultListener


Constructor Summary
QueryResult(Query query, String name, FacetInfo facet, AFModel model)
           
 
Method Summary
 void bindingNames(List<String> names)
          Notifies the binding names to be used, in the order in which they appear in the query header.
 boolean contains(Object object)
          Returns whether this Classification contains the specified Object.
 void finishedEvaluation()
          Send when the evaluation proces is finished.
 void finishedQuerying(org.openrdf.repository.Repository repository)
          Reports that the specified Repository has produced all its results.
 Collection<Classification> getChildren()
          Returns the child Classifications, if any.
 FacetInfo getFacet()
           
 String getName()
          Returns the symbolic name of this Classification.
 Collection<Item> getObjects()
          Returns the set of objects classified by this Classification.
 Classification getParent()
          Returns the parent Classification, if any.
 Query getQuery()
           
 int getSize()
          Returns the number of objects classified by this Classification.
 boolean isActive()
           
 void process(org.openrdf.query.BindingSet bindings, org.openrdf.repository.Repository origin)
          Reports the specified BindingSet originating from the specified Repository.
 void querying(org.openrdf.repository.Repository repository)
          Indicates that the QueryEvaluator has started querying the specified Repository.
 void startingEvaluation(int nrSources)
          Indicates that the QueryEvaluator is starting evaluation of its Query.
 void stopEvaluation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult(Query query,
                   String name,
                   FacetInfo facet,
                   AFModel model)
Method Detail

getName

public String getName()
Description copied from interface: Classification
Returns the symbolic name of this Classification.

Specified by:
getName in interface Classification

getFacet

public FacetInfo getFacet()

getObjects

public Collection<Item> getObjects()
Description copied from interface: Classification
Returns the set of objects classified by this Classification.

Specified by:
getObjects in interface Classification

getSize

public int getSize()
Description copied from interface: Classification
Returns the number of objects classified by this Classification.

Specified by:
getSize in interface Classification

getParent

public Classification getParent()
Description copied from interface: Classification
Returns the parent Classification, if any.

Specified by:
getParent in interface Classification

getChildren

public Collection<Classification> getChildren()
Description copied from interface: Classification
Returns the child Classifications, if any.

Specified by:
getChildren in interface Classification

contains

public boolean contains(Object object)
Description copied from interface: Classification
Returns whether this Classification contains the specified Object. For fast containment checking this method is preferred over retrieving the entire Collection of objects and performing the test on that Collection.

Specified by:
contains in interface Classification

startingEvaluation

public void startingEvaluation(int nrSources)
Description copied from interface: ResultListener
Indicates that the QueryEvaluator is starting evaluation of its Query. The number of Repositories that will be queried is specified. No assumptions can be made as to in which order the Repositories are queried, this may range from fully sequential to fully parallel.

Specified by:
startingEvaluation in interface ResultListener

querying

public void querying(org.openrdf.repository.Repository repository)
Description copied from interface: ResultListener
Indicates that the QueryEvaluator has started querying the specified Repository.

Specified by:
querying in interface ResultListener

bindingNames

public void bindingNames(List<String> names)
Description copied from interface: TableResultListener
Notifies the binding names to be used, in the order in which they appear in the query header.

Specified by:
bindingNames in interface TableResultListener

process

public void process(org.openrdf.query.BindingSet bindings,
                    org.openrdf.repository.Repository origin)
             throws EvaluationStoppedException
Description copied from interface: TableResultListener
Reports the specified BindingSet originating from the specified Repository.

Specified by:
process in interface TableResultListener
Throws:
EvaluationStoppedException

finishedQuerying

public void finishedQuerying(org.openrdf.repository.Repository repository)
Description copied from interface: ResultListener
Reports that the specified Repository has produced all its results.

Specified by:
finishedQuerying in interface ResultListener

finishedEvaluation

public void finishedEvaluation()
Description copied from interface: ResultListener
Send when the evaluation proces is finished.

Specified by:
finishedEvaluation in interface ResultListener

getQuery

public Query getQuery()

isActive

public boolean isActive()

stopEvaluation

public void stopEvaluation()


Copyright © 1997-2008 Aduna. All Rights Reserved.