public class AnnotationWriter extends CasConsumer_ImplBase implements CasConsumer
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 |
|---|
AnnotationWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchProcessComplete(ProcessTrace aTrace)
Completes the processing of a batch.
|
void |
collectionProcessComplete(ProcessTrace aTrace)
Completes the processing of an entire collection.
|
void |
destroy()
Releases all resources held by this
Resource. |
void |
initialize()
Initializes this CAS Consumer with the parameters specified in the
descriptor.
|
void |
processCas(CAS aCAS)
Process a single CAS.
|
void |
reconfigure()
Notifies this CAS Consumer that its configuration parameter settings have been changed.
|
getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisReadOnlygetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLoggerprocessCas, typeSystemInitgetProcessingResourceMetaData, isStatelesspublic void initialize()
throws ResourceInitializationException
initialize in class CasConsumer_ImplBaseResourceInitializationException - if there is error in
initializing the resourcespublic void processCas(CAS aCAS) throws ResourceProcessException
CasObjectProcessorprocessCas in interface CasObjectProcessoraCAS - the CAS to be processed. Additional information may be added to this CAS (if this CAS
processor is not read-only).ResourceProcessException - if processing failspublic void batchProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
CasProcessorbatchProcessComplete in interface CasProcessorbatchProcessComplete in class CasConsumer_ImplBaseaTrace - an object that records information, such as timing, about this method's execution.ResourceProcessException - if an exception occurs during processingIOException - if an I/O failure occursCasProcessor.batchProcessComplete(org.apache.uima.util.ProcessTrace)public void collectionProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException
CasProcessorcollectionProcessComplete in interface CasProcessorcollectionProcessComplete in class CasConsumer_ImplBaseaTrace - an object that records information, such as timing, about this method's execution.ResourceProcessException - if an exception occurs during processingIOException - if an I/O failure occursCasProcessor.collectionProcessComplete(org.apache.uima.util.ProcessTrace)public void reconfigure()
throws ResourceConfigurationException
CasConsumer_ImplBaseCasConsumer_ImplBase.destroy() followed by CasConsumer_ImplBase.initialize(). CAS
Consumers that have expensive initialization that does not need to be redone whenever
configuration parameters change may wish to override this method to provide a more efficient
implementation.reconfigure in interface ConfigurableResourcereconfigure in class CasConsumer_ImplBaseResourceConfigurationException - if the configuration is not validConfigurableResource_ImplBase.reconfigure()public void destroy()
ResourceResource.destroy in interface Resourcedestroy in class CasConsumer_ImplBaseResource.destroy()Copyright © 2018. All rights reserved.