|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sail.query.QueryResultsCounter
A QueryAnswerListener that counts the number of reported query results and forwards them to another QueryAnswerListener.
| Constructor Summary | |
QueryResultsCounter()
Creates a new QueryResultsCounter. |
|
QueryResultsCounter(QueryAnswerListener l)
Creates a new QueryResultsCounter that forwards any query results to the specified listener. |
|
| Method Summary | |
void |
clear()
Method called when the query engine has finished or aborted the query evaluation, signaling that the listener can/should clear any recorded and query-specific information. |
int |
getCount()
Gets the number of query answers that has been counted. |
boolean |
queryAnswer(QueryAnswer qa)
Reports a query answer to the listener. |
void |
resetCounter()
Resets the counter to 0. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryResultsCounter()
public QueryResultsCounter(QueryAnswerListener l)
l - A QueryAnswerListener.| Method Detail |
public boolean queryAnswer(QueryAnswer qa)
throws IOException
QueryAnswerListener
queryAnswer in interface QueryAnswerListenerqa - The query answer.
IOExceptionpublic void clear()
QueryAnswerListener
clear in interface QueryAnswerListenerpublic int getCount()
public void resetCounter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||