Class PrimitiveAnalysisEngine_impl.AnalysisComponentCasIterator
java.lang.Object
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.AnalysisComponentCasIterator
- All Implemented Interfaces:
CasIterator
- Enclosing class:
PrimitiveAnalysisEngine_impl
class PrimitiveAnalysisEngine_impl.AnalysisComponentCasIterator
extends Object
implements CasIterator
Implements the iterator that steps through all outputs from an AnalysisComponent.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisComponentCasIterator(AnalysisComponent aAnalysisComponent, CAS aInputCas) -
Method Summary
-
Field Details
-
mMyAnalysisComponent
-
mInputCas
-
casAvailable
private boolean casAvailable
-
-
Constructor Details
-
AnalysisComponentCasIterator
AnalysisComponentCasIterator(AnalysisComponent aAnalysisComponent, CAS aInputCas)
-
-
Method Details
-
hasNext
Description copied from interface:CasIteratorChecks if there are more CASes to be returned by the iterator.- Specified by:
hasNextin interfaceCasIterator- Returns:
- true if there are more CASes to be returned, false if not
- Throws:
AnalysisEngineProcessException- if a failure has occurred during processing. If an exception is thrown, this indicates that processing has aborted, so no further calls to the CasIterator should be made.
-
next
Description copied from interface:CasIteratorGets the next CAS from the iterator.- Specified by:
nextin interfaceCasIterator- Returns:
- the next CAS.
- Throws:
AnalysisEngineProcessException- if a failure has occurred during processing. If an exception is thrown, this indicates that processing has aborted, so no further calls to the CasIterator should be made.
-
release
public void release()Description copied from interface:CasIteratorReleases any CASes owned by this CasIterator. You only need to Call this method if you stop using a CasIterator before you have iterated all the way through.- Specified by:
releasein interfaceCasIterator
-