org.apache.uima.lucas
Class LuceneDocumentAE

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.CasAnnotator_ImplBase
              extended by 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.


Field Summary
protected  AnnotationTokenStreamBuilder annotationTokenStreamBuilder
           
protected  FieldBuilder fieldBuilder
           
protected  Collection<FieldDescription> fieldDescriptions
           
protected  FilterBuilder filterBuilder
           
static String PARAM_MAPPINGFILE
           
protected  Tokenizer tokenizer
           
 
Constructor Summary
LuceneDocumentAE()
           
 
Method Summary
 org.apache.lucene.document.Document createDocument(org.apache.uima.cas.CAS cas)
           
 void initialize(org.apache.uima.UimaContext aContext)
          initializes the analyzer
protected  void preloadResources(Collection<FieldDescription> fieldDescriptions, Map<String,TokenFilterFactory> defaultFilterFactoryRegistry)
           
 
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
 

Field Detail

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
Constructor Detail

LuceneDocumentAE

public LuceneDocumentAE()
Method Detail

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.