public abstract class JCasMultiplier_ImplBase extends AnalysisComponent_ImplBase
CAS
interface. A CAS Multiplier
can produce multiplie output CASes while processing an input CAS. See AnalysisComponent
for a description of how the framework calls the methods on this interface.Constructor and Description |
---|
JCasMultiplier_ImplBase() |
Modifier and Type | Method and Description |
---|---|
int |
getCasInstancesRequired()
Returns the maximum number of CAS instances that this CAS Multiplier expects to use at the same
time.
|
protected JCas |
getEmptyJCas()
Gets an empty JCas that this CAS Multiplier can then populate.
|
Class<JCas> |
getRequiredCasInterface()
Returns the specific CAS interface that this AnalysisComponent requires the framework to pass
to its
AnalysisComponent.process(AbstractCas) method. |
void |
process(AbstractCas aCAS)
Inputs a CAS to the AnalysisComponent.
|
abstract void |
process(JCas aJCas)
This method should be overriden by subclasses.
|
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, initialize, reconfigure, setResultSpecification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, next
public final Class<JCas> getRequiredCasInterface()
AnalysisComponent
AnalysisComponent.process(AbstractCas)
method.AbstractCas
.public int getCasInstancesRequired()
public final void process(AbstractCas aCAS) throws AnalysisEngineProcessException
AnalysisComponent
AnalysisComponent.hasNext()
is called and returns false or until process
is called again
(see class description).aCAS
- A CAS that this AnalysisComponent should process. The framework will ensure that aCAS
implements the specific CAS interface specified by the
AnalysisComponent.getRequiredCasInterface()
method.AnalysisEngineProcessException
- if a problem occurs during processingpublic abstract void process(JCas aJCas) throws AnalysisEngineProcessException
AnalysisComponent.hasNext()
is called and returns
false, or until the process
method is called again (see
AnalysisComponent
for details).aJCas
- a JCAS that this AnalysisComponent should process.AnalysisEngineProcessException
- if a problem occurs during processingprotected final JCas getEmptyJCas()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.