Interface QueryAnswerMonitor
public interface QueryAnswerMonitor
This callback interface can be passed to a
DataStoreConnection along with a query to receive query answers as they are processed.-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessQueryAnswer(List<ResourceValue> answer, long multiplicity) Called for each query answer.voidCalled after all query answers have been processed.voidqueryAnswersStarted(Prefixes prefixes, String[] answerVariableNames) Called at the start of query answering.
-
Method Details
-
queryAnswersStarted
Called at the start of query answering.- Parameters:
prefixes- the set of prefixes in the data storeanswerVariableNames- contains the names of the answer variables- Throws:
JRDFoxException- thrown if there is an error
-
processQueryAnswer
Called for each query answer.- Parameters:
answer- the array of resource values that constitute the query answermultiplicity- specifies now many timesanswershould be counted- Throws:
JRDFoxException- thrown if there is an error
-
queryAnswersFinished
Called after all query answers have been processed.- Throws:
JRDFoxException- thrown if there is an error
-