public class KeyLoaderQueryResultsHandler 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.
|
String |
getDisplayName()
Returns this query result handler's display name for user interfaces.
|
String |
getId()
Gets the query result handler's identifier string for logging and
internal purposes.
|
void |
handleQueryResult(String keyId,
List<Proposition> propositions,
Map<Proposition,Set<Proposition>> forwardDerivations,
Map<Proposition,Set<Proposition>> backwardDerivations,
Map<UniqueId,Proposition> references)
Handles a single query result, which is the list of propositions
associated with the given key.
|
void |
start(PropositionDefinitionCache 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). |
cancel, close, validatepublic String getDisplayName()
AbstractQueryResultsHandlerAbstractQueryResultsHandler.getId().getDisplayName in interface QueryResultsHandlergetDisplayName in class AbstractQueryResultsHandlerpublic String getId()
QueryResultsHandlergetId in interface QueryResultsHandlergetId in class AbstractQueryResultsHandlerpublic void start(PropositionDefinitionCache 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 keyId, List<Proposition> propositions, Map<Proposition,Set<Proposition>> forwardDerivations, Map<Proposition,Set<Proposition>> backwardDerivations, Map<UniqueId,Proposition> references) throws QueryResultsHandlerProcessingException
QueryResultsHandlerkeyId - the identifying key id for the resultpropositions - the proposition results for the given key as a newly
created List.QueryResultsHandlerProcessingExceptionpublic void finish()
throws QueryResultsHandlerProcessingException
QueryResultsHandlerfinish in interface QueryResultsHandlerfinish in class AbstractQueryResultsHandlerQueryResultsHandlerProcessingException - if any exceptions occur at
a lower levelCopyright © 2012–2018 Emory University. All rights reserved.