Class PrimitiveAnalysisEngine_impl.AnalysisComponentCasIterator

  • All Implemented Interfaces:
    CasIterator
    Enclosing class:
    PrimitiveAnalysisEngine_impl

    class PrimitiveAnalysisEngine_impl.AnalysisComponentCasIterator
    extends java.lang.Object
    implements CasIterator
    Implements the iterator that steps through all outputs from an AnalysisComponent.
    • Field Detail

      • mInputCas

        private CAS mInputCas
      • casAvailable

        private boolean casAvailable
    • Constructor Detail

      • AnalysisComponentCasIterator

        AnalysisComponentCasIterator​(AnalysisComponent aAnalysisComponent,
                                     CAS aInputCas)
    • 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 interface CasIterator
        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.
      • 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 interface CasIterator