public interface CasObjectProcessor extends CasProcessor
CAS
implementation.Modifier and Type | Method and Description |
---|---|
void |
processCas(CAS aCAS)
Process a single CAS.
|
void |
processCas(CAS[] aCASes)
Processes multiple CASes.
|
void |
typeSystemInit(TypeSystem aTypeSystem)
Informs this CasConsumer that the CAS TypeSystem has changed.
|
batchProcessComplete, collectionProcessComplete, getProcessingResourceMetaData, isReadOnly, isStateless
void processCas(CAS aCAS) throws ResourceProcessException
aCAS
- the CAS to be processed. Additional information may be added to this CAS (if this CAS
processor is not read-only
).ResourceProcessException
- if processing failsvoid processCas(CAS[] aCASes) throws ResourceProcessException
aCASes
- an array of CASes to be processed. Additional information may be added to these CASes
(if this CAS processor is not read-only
).ResourceProcessException
- if processing fails for any of the CASesvoid typeSystemInit(TypeSystem aTypeSystem) throws ResourceInitializationException
In this method, the CasConsumer should use the TypeSystem
to resolve the names of Type
and Features to the actual Type
and
Feature
objects, which can then be used during processing.
aTypeSystem
- the type system to useResourceInitializationException
- if the type system is not compatible with this Cas ConsumerCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.