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 |
---|---|
CollectionProcessingEngine |
createCpe(StatusCallbackListener aListener) |
CpeDescription |
getCpeDescription() |
void |
setAnalysisEngine(AnalysisEngineDescription aDesc) |
void |
setMaxProcessingUnitThreadCount(int aMaxProcessingUnitThreadCount) |
void |
setReader(CollectionReaderDescription aDesc) |
public void setMaxProcessingUnitThreadCount(int aMaxProcessingUnitThreadCount)
public void setReader(CollectionReaderDescription aDesc) throws IOException, SAXException, CpeDescriptorException
public void setAnalysisEngine(AnalysisEngineDescription aDesc) throws IOException, SAXException, CpeDescriptorException, InvalidXMLException
public CpeDescription getCpeDescription()
public CollectionProcessingEngine createCpe(StatusCallbackListener aListener) throws ResourceInitializationException, CpeDescriptorException
Copyright © 2012–2013 The Apache Software Foundation. All rights reserved.