org.apache.uima.lucas
Class LuceneDocumentAE
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.lucas.LuceneDocumentAE
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
- Direct Known Subclasses:
- LuceneCASIndexer, ProspectiveSearchAE
public abstract class LuceneDocumentAE
- extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
Abstract base class for AEs which need to process Lucene Document
objects.
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase |
getRequiredCasInterface, process, process, typeSystemInit |
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase |
getCasInstancesRequired, hasNext, next |
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase |
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAM_MAPPINGFILE
public static final String PARAM_MAPPINGFILE
- See Also:
- Constant Field Values
fieldDescriptions
protected Collection<FieldDescription> fieldDescriptions
fieldBuilder
protected FieldBuilder fieldBuilder
filterBuilder
protected FilterBuilder filterBuilder
annotationTokenStreamBuilder
protected AnnotationTokenStreamBuilder annotationTokenStreamBuilder
tokenizer
protected Tokenizer tokenizer
LuceneDocumentAE
public LuceneDocumentAE()
initialize
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
- initializes the analyzer
- Specified by:
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
- Overrides:
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
- Throws:
org.apache.uima.resource.ResourceInitializationException
preloadResources
protected void preloadResources(Collection<FieldDescription> fieldDescriptions,
Map<String,TokenFilterFactory> defaultFilterFactoryRegistry)
throws IOException
- Throws:
IOException
createDocument
public org.apache.lucene.document.Document createDocument(org.apache.uima.cas.CAS cas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.