public class CpeBuilder extends Object
CollectionReaderDescription and a
AnalysisEngineDescription. If an aggregate analysis engine description is used, the
builder will add each child of the aggregate engine as one processor to the engine. This works
only for aggregate analysis engines using a FixedFlow.| Constructor and Description |
|---|
CpeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.uima.collection.CollectionProcessingEngine |
createCpe(org.apache.uima.collection.StatusCallbackListener aListener) |
org.apache.uima.collection.metadata.CpeDescription |
getCpeDescription() |
void |
setAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription aDesc)
Set the analysis engine used by the CPE.
|
void |
setMaxProcessingUnitThreadCount(int aMaxProcessingUnitThreadCount)
Set the maximum number of threads the CPE may use.
|
void |
setReader(org.apache.uima.collection.CollectionReaderDescription aDesc)
Set the reader used by the CPE.
|
public void setMaxProcessingUnitThreadCount(int aMaxProcessingUnitThreadCount)
aMaxProcessingUnitThreadCount - the maximum number of threads the CPE may use.public void setReader(org.apache.uima.collection.CollectionReaderDescription aDesc)
throws IOException,
SAXException,
org.apache.uima.collection.metadata.CpeDescriptorException
aDesc - the reader description.IOException - if the descriptor cannot be written to the temporary space from where it is imported
by the CPE.SAXException - if the reader descriptor cannot be serialized to XML.org.apache.uima.collection.metadata.CpeDescriptorException - if there was a problem adding the reader to the CPE.public void setAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription aDesc)
throws IOException,
SAXException,
org.apache.uima.collection.metadata.CpeDescriptorException,
org.apache.uima.util.InvalidXMLException
aDesc - the analysis engine description.IOException - if the descriptor cannot be written to the temporary space from where it is imported
by the CPE.SAXException - if the analysis engine descriptor cannot be serialized to XML.org.apache.uima.collection.metadata.CpeDescriptorException - if there was a problem adding the analysis engine to the CPE.org.apache.uima.util.InvalidXMLException - if import resolution failedpublic org.apache.uima.collection.metadata.CpeDescription getCpeDescription()
public org.apache.uima.collection.CollectionProcessingEngine createCpe(org.apache.uima.collection.StatusCallbackListener aListener)
throws org.apache.uima.resource.ResourceInitializationException,
org.apache.uima.collection.metadata.CpeDescriptorException
org.apache.uima.resource.ResourceInitializationExceptionorg.apache.uima.collection.metadata.CpeDescriptorExceptionCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.