public final class DeidentifiedDestination extends AbstractDestination
| Constructor and Description |
|---|
DeidentifiedDestination(Destination destination,
DeidConfig deidConfig) |
| Modifier and Type | Method and Description |
|---|---|
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() |
getDisplayNamepublic DeidentifiedDestination(Destination destination, DeidConfig deidConfig)
public String getId()
DestinationgetId in interface DestinationgetId in class AbstractDestinationpublic QueryResultsHandler getQueryResultsHandler(Query query, DataSource dataSource, KnowledgeSource knowledgeSource, List<? extends ProtempaEventListener> eventListeners) throws QueryResultsHandlerInitException
Destination#collectStatistics() will work. This method is called by
Protempa before
#handleKnowledgeSource(org.protempa.KnowledgeSource) .QueryResultsHandlerInitExceptionpublic boolean isGetStatisticsSupported()
isGetStatisticsSupported in interface DestinationisGetStatisticsSupported in class AbstractDestinationpublic Statistics getStatistics() throws StatisticsException
DestinationgetStatistics in interface DestinationgetStatistics in class AbstractDestinationnull if statistics
collection is not supported by this kind of query results handler.StatisticsExceptionpublic String[] getSupportedPropositionIds(DataSource dataSource, KnowledgeSource knowledgeSource) throws GetSupportedPropositionIdsException
DestinationQueryResultsHandler for which such inference
does not make sense may return an empty array, in which case, no
filtering occurs.getSupportedPropositionIds in interface DestinationgetSupportedPropositionIds in class AbstractDestinationString. Guaranteed not
null.GetSupportedPropositionIdsExceptionCopyright © 2012–2017 Emory University. All rights reserved.