Interface CasDataConsumer

All Superinterfaces:
CasDataProcessor, CasProcessor, ConfigurableResource, Resource
All Known Implementing Classes:
CasDataConsumer_ImplBase

public interface CasDataConsumer extends ConfigurableResource, CasDataProcessor
Any component that operates on analysis results produced by a UIMA CasDataProcessor. CASDataConsumers may be registered with a CollectionProcessingManager (CPM). During collection processing, the CPM will pass each CasData from CasProcessor to each consumer's process method. The CAS consumer can do anything it wants with the CASes it receives; commonly CAS consumers will build aggregate data structures such as search engine indexes or glossaries.

The CPM will also call each CAS Consumer's batchProcessComplete(ProcessTrace) method at the end of each batch and their collectionProcessComplete(ProcessTrace) method called at the end of the collection.

CasConsumers are also ConfigurableResources, and can be instantiated from descriptors. See XMLParser.parseCasConsumerDescription(XMLInputSource) and UIMAFramework.produceCasConsumer(ResourceSpecifier,Map) for more information.