public final class XmlQueryResultsHandler extends AbstractQueryResultsHandler
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Called by Protempa as soon as all query results have been retrieved from
the data source.
|
void |
handleQueryResult(String key,
List<Proposition> propositions,
Map<Proposition,List<Proposition>> forwardDerivations,
Map<Proposition,List<Proposition>> backwardDerivations,
Map<UniqueId,Proposition> references)
Handles a single query result, which is the list of propositions
associated with the given key.
|
void |
start(Collection<PropositionDefinition> cache)
Called by Protempa prior to the first invocation of
QueryResultsHandler.handleQueryResult(java.lang.String, java.util.List, java.util.Map, java.util.Map, java.util.Map). |
void |
validate()
Validates this query results handler's specification.
|
cancel, close, getDisplayName, getIdpublic void validate()
throws QueryResultsHandlerValidationFailedException
QueryResultsHandlervalidate in interface QueryResultsHandlervalidate in class AbstractQueryResultsHandlerQueryResultsHandlerValidationFailedException - if validation
failed.public void finish()
throws QueryResultsHandlerProcessingException
QueryResultsHandlerfinish in interface QueryResultsHandlerfinish in class AbstractQueryResultsHandlerQueryResultsHandlerProcessingException - if any exceptions occur at
a lower levelpublic void start(Collection<PropositionDefinition> cache) throws QueryResultsHandlerProcessingException
QueryResultsHandlerQueryResultsHandler.handleQueryResult(java.lang.String, java.util.List, java.util.Map, java.util.Map, java.util.Map).
Implementers of this method may perform arbitrary processing related to
the output of the handler, such as printing out headers of a file or
extracting metadata for the handler's output.start in interface QueryResultsHandlerstart in class AbstractQueryResultsHandlercache - a cache of all of the proposition definitions that were
queried.QueryResultsHandlerProcessingException - if any exceptions occur at
a lower level.public void handleQueryResult(String key, List<Proposition> propositions, Map<Proposition,List<Proposition>> forwardDerivations, Map<Proposition,List<Proposition>> backwardDerivations, Map<UniqueId,Proposition> references) throws QueryResultsHandlerProcessingException
QueryResultsHandlerkey - the identifying key id for the resultpropositions - the proposition results for the given key as a newly
created List.QueryResultsHandlerProcessingExceptionCopyright © 2012–2017 Emory University. All rights reserved.