public interface Destination
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName()
Gets the destination's display name for user interfaces.
|
String |
getId()
Gets the destination's identifier string for logging and internal
purposes.
|
QueryResultsHandler |
getQueryResultsHandler(Query query,
DataSource dataSource,
KnowledgeSource knowledgeSource,
List<? extends ProtempaEventListener> eventListeners)
Performs any initialization required for the query results handler's
configuration.
|
Statistics |
getStatistics()
Returns an instance that can be used to discover information about
previous runs of data.
|
String[] |
getSupportedPropositionIds(DataSource dataSource,
KnowledgeSource knowledgeSource)
Infers from the query results handler's specification what propositions
this query results handler supports in its output.
|
boolean |
isGetStatisticsSupported() |
String getId()
String getDisplayName()
QueryResultsHandler getQueryResultsHandler(Query query, DataSource dataSource, KnowledgeSource knowledgeSource, List<? extends ProtempaEventListener> eventListeners) throws QueryResultsHandlerInitException
#collectStatistics() will work. This method is called by
Protempa before
#handleKnowledgeSource(org.protempa.KnowledgeSource) .org.protempa.query.handler.QueryResultsHandlerInitException - if
any exceptions occur. There may be a nested exception with more
information.QueryResultsHandlerInitExceptionboolean isGetStatisticsSupported()
Statistics getStatistics() throws StatisticsException
null if statistics
collection is not supported by this kind of query results handler.CollectStatisticsException - if an error occurred.StatisticsExceptionString[] getSupportedPropositionIds(DataSource dataSource, KnowledgeSource knowledgeSource) throws GetSupportedPropositionIdsException
QueryResultsHandler for which such inference
does not make sense may return an empty array, in which case, no
filtering occurs.String. Guaranteed not
null.QueryResultsHandlerProcessingException - if
an error occurs.GetSupportedPropositionIdsExceptionCopyright © 2012–2017 Emory University. All rights reserved.