public class JCasIterable extends Object implements Iterable<org.apache.uima.jcas.JCas>
A class implementing iteration over a the documents of a collection. Each element in the Iterable is a JCas containing a single document. The documents have been loaded by the CollectionReader and processed by the AnalysisEngine (if any).
External resources can be shared between the reader and the analysis engines.
| Constructor and Description |
|---|
JCasIterable(org.apache.uima.collection.CollectionReaderDescription aReader,
org.apache.uima.analysis_engine.AnalysisEngineDescription... aEngines)
Iterate over the documents loaded by the CollectionReader, running the AnalysisEngine on each
one before yielding them.
|
| Modifier and Type | Method and Description |
|---|---|
JCasIterator |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic JCasIterable(org.apache.uima.collection.CollectionReaderDescription aReader,
org.apache.uima.analysis_engine.AnalysisEngineDescription... aEngines)
aReader - The CollectionReader for loading documents.aEngines - The AnalysisEngines for processing documents.public JCasIterator iterator()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.