Class EmptyCasIterator
- java.lang.Object
-
- org.apache.uima.analysis_engine.impl.EmptyCasIterator
-
- All Implemented Interfaces:
CasIterator
public class EmptyCasIterator extends java.lang.Object implements CasIterator
Trivial CasIterator that returns no CASes.
-
-
Constructor Summary
Constructors Constructor Description EmptyCasIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Checks if there are more CASes to be returned by the iterator.CASnext()Gets the next CAS from the iterator.voidrelease()Releases any CASes owned by this CasIterator.
-
-
-
Method Detail
-
hasNext
public boolean hasNext() throws AnalysisEngineProcessExceptionDescription 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
public CAS next() throws AnalysisEngineProcessException
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
-
-