Interface CasObjectProcessor
-
- All Superinterfaces:
CasProcessor
- All Known Subinterfaces:
AnalysisEngine,CasConsumer,TextAnalysisEngine
- All Known Implementing Classes:
AggregateAnalysisEngine_impl,AnalysisEngineImplBase,AnalysisEngineProcessorAdapter,AnalysisEngineServiceAdapter,ASB_impl.DummyAnalysisEngine,CasConsumer_ImplBase,CasObjectNetworkCasProcessorImpl,CasProcessorAnnotator,InlineXmlCasConsumer,JCasProcessorAnnotator,MultiprocessingAnalysisEngine_impl,PearAnalysisEngineWrapper,PrimitiveAnalysisEngine_impl,UimacppAnalysisEngineImpl,VinciAnalysisEngineServiceAdapter,XCasWriterCasConsumer,XmiWriterCasConsumer
public interface CasObjectProcessor extends CasProcessor
Interface for CAS Processors that want to use the fullCASimplementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocessCas(CAS aCAS)Process a single CAS.voidprocessCas(CAS[] aCASes)Processes multiple CASes.voidtypeSystemInit(TypeSystem aTypeSystem)Informs this CasConsumer that the CAS TypeSystem has changed.-
Methods inherited from interface org.apache.uima.collection.base_cpm.CasProcessor
batchProcessComplete, collectionProcessComplete, getProcessingResourceMetaData, isReadOnly, isStateless
-
-
-
-
Method Detail
-
processCas
void processCas(CAS aCAS) throws ResourceProcessException
Process a single CAS.- Parameters:
aCAS- the CAS to be processed. Additional information may be added to this CAS (if this CAS processor is notread-only).- Throws:
ResourceProcessException- if processing fails
-
processCas
void processCas(CAS[] aCASes) throws ResourceProcessException
Processes multiple CASes.- Parameters:
aCASes- an array of CASes to be processed. Additional information may be added to these CASes (if this CAS processor is notread-only).- Throws:
ResourceProcessException- if processing fails for any of the CASes
-
typeSystemInit
void typeSystemInit(TypeSystem aTypeSystem) throws ResourceInitializationException
Informs this CasConsumer that the CAS TypeSystem has changed. The CPM calls this method prior to initiating collection processing, and will call it again whenever the CAS TypeSystem changes.In this method, the CasConsumer should use the
TypeSystemto resolve the names of Type and Features to the actualTypeandFeatureobjects, which can then be used during processing.- Parameters:
aTypeSystem- the type system to use- Throws:
ResourceInitializationException- if the type system is not compatible with this Cas Consumer
-
-