Class UimacppAnalysisEngineImpl.TafAnalysisComponentCasIterator
- java.lang.Object
-
- org.apache.uima.analysis_engine.impl.UimacppAnalysisEngineImpl.TafAnalysisComponentCasIterator
-
- All Implemented Interfaces:
CasIterator
- Enclosing class:
- UimacppAnalysisEngineImpl
class UimacppAnalysisEngineImpl.TafAnalysisComponentCasIterator extends java.lang.Object implements CasIterator
Implements the iterator that steps through all outputs from an AnalysisComponent.
-
-
Field Summary
Fields Modifier and Type Field Description private AnalysisComponent
mAnalysisComponent
-
Constructor Summary
Constructors Constructor Description TafAnalysisComponentCasIterator(AnalysisComponent aAnalysisComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Checks if there are more CASes to be returned by the iterator.CAS
next()
Gets the next CAS from the iterator.void
release()
Releases any CASes owned by this CasIterator.
-
-
-
Field Detail
-
mAnalysisComponent
private AnalysisComponent mAnalysisComponent
-
-
Constructor Detail
-
TafAnalysisComponentCasIterator
TafAnalysisComponentCasIterator(AnalysisComponent aAnalysisComponent)
-
-
Method Detail
-
hasNext
public boolean hasNext() throws AnalysisEngineProcessException
Description copied from interface:CasIterator
Checks if there are more CASes to be returned by the iterator.- Specified by:
hasNext
in 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
public CAS next() throws AnalysisEngineProcessException
Description copied from interface:CasIterator
Gets the next CAS from the iterator.- Specified by:
next
in 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:CasIterator
Releases 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:
release
in interfaceCasIterator
-
-