public class EmptyCasIterator extends Object implements CasIterator
Constructor and Description |
---|
EmptyCasIterator() |
Modifier and Type | Method and 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.
|
public boolean hasNext() throws AnalysisEngineProcessException
CasIterator
hasNext
in interface CasIterator
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.public CAS next() throws AnalysisEngineProcessException
CasIterator
next
in interface CasIterator
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.public void release()
CasIterator
release
in interface CasIterator
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.