Interface CasDataProcessor
-
- All Superinterfaces:
CasProcessor
- All Known Subinterfaces:
CasDataConsumer
- All Known Implementing Classes:
CasDataConsumer_ImplBase
,NetworkCasProcessorImpl
public interface CasDataProcessor extends CasProcessor
Interface for CAS processors that want to interact directly with theCasData
. This works best for simple processors that do not need the indexing or strong typing features provided by the CAS container.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CasData
process(CasData aCAS)
Process a single CasData.CasData[]
process(CasData[] aCASes)
Process multiple CasData objects.-
Methods inherited from interface org.apache.uima.collection.base_cpm.CasProcessor
batchProcessComplete, collectionProcessComplete, getProcessingResourceMetaData, isReadOnly, isStateless
-
-
-
-
Method Detail
-
process
CasData process(CasData aCAS) throws ResourceProcessException
Process a single CasData.- Parameters:
aCAS
- the input CasData- Returns:
- the output CasData (if this CAS processor is
read-only
, this will always be equivalent toaCAS
. - Throws:
ResourceProcessException
- if processing fails
-
process
CasData[] process(CasData[] aCASes) throws ResourceProcessException
Process multiple CasData objects.- Parameters:
aCASes
- the input CasData objects- Returns:
- the output CasData objects (if this CAS processor is
read-only
, these will always be equivalent toaCASes
. - Throws:
ResourceProcessException
- if processing fails
-
-