public class AnnotationPrinter extends CasConsumer_ImplBase implements CasObjectProcessor
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
Constructor and Description |
---|
AnnotationPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
batchProcessComplete(ProcessTrace aTrace)
Called when a batch of processing is completed.
|
void |
collectionProcessComplete(ProcessTrace aTrace)
Called when the entire collection is completed.
|
void |
destroy()
Called if clean up is needed in case of exit under error conditions.
|
void |
initialize()
Initializes this CAS Consumer with the parameters specified in the descriptor.
|
void |
processCas(CAS aCAS)
Processes the CasContainer which was populated by the TextAnalysisEngines.
|
void |
reconfigure()
Reconfigures the parameters of this Consumer.
|
getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processCas, typeSystemInit
getProcessingResourceMetaData, isReadOnly, isStateless
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
public void initialize() throws ResourceInitializationException
initialize
in class CasConsumer_ImplBase
ResourceInitializationException
- if there is error in initializing the resourcespublic void processCas(CAS aCAS) throws ResourceProcessException
processCas
in interface CasObjectProcessor
aCAS
- CasContainer which has been populated by the TAEsResourceProcessException
- if there is an error in processing the ResourceCasObjectProcessor.processCas(CAS)
public void batchProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
batchProcessComplete
in interface CasProcessor
batchProcessComplete
in class CasConsumer_ImplBase
aTrace
- ProcessTrace object that will log events in this method.ResourceProcessException
- if there is an error in processing the ResourceIOException
- if there is an IO ErrorCasProcessor.batchProcessComplete(ProcessTrace)
public void collectionProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
collectionProcessComplete
in interface CasProcessor
collectionProcessComplete
in class CasConsumer_ImplBase
aTrace
- ProcessTrace object that will log events in this method.ResourceProcessException
- if there is an error in processing the ResourceIOException
- if there is an IO ErrorCasProcessor.collectionProcessComplete(ProcessTrace)
public void reconfigure() throws ResourceConfigurationException
reconfigure
in interface ConfigurableResource
reconfigure
in class CasConsumer_ImplBase
ResourceConfigurationException
- if the configuration parameter settings are invalidConfigurableResource.reconfigure()
public void destroy()
destroy
in interface Resource
destroy
in class CasConsumer_ImplBase
Resource.destroy()
Copyright © 2016. All rights reserved.