org.apache.uima.lucas.consumer
Class LuceneCASIndexer

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
                  extended by org.apache.uima.lucas.consumer.LuceneCASIndexer
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class LuceneCASIndexer
extends LuceneDocumentAE

Reads CAS object and writes the particular information in fields of a Lucene index. requires a mapping file


Field Summary
protected  org.apache.lucene.index.IndexWriter indexWriter
           
 
Fields inherited from class org.apache.uima.lucas.LuceneDocumentAE
annotationTokenStreamBuilder, fieldBuilder, fieldDescriptions, filterBuilder, PARAM_MAPPINGFILE, tokenizer
 
Constructor Summary
LuceneCASIndexer()
           
 
Method Summary
 void destroy()
           
 void initialize(org.apache.uima.UimaContext aContext)
          initializes the analyzer
 void optimizeIndex()
           
 void process(org.apache.uima.cas.CAS cas)
           
 
Methods inherited from class org.apache.uima.lucas.LuceneDocumentAE
createDocument, preloadResources
 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase
getRequiredCasInterface, 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, getContext, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexWriter

protected org.apache.lucene.index.IndexWriter indexWriter
Constructor Detail

LuceneCASIndexer

public LuceneCASIndexer()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext aContext)
                throws org.apache.uima.resource.ResourceInitializationException
Description copied from class: LuceneDocumentAE
initializes the analyzer

Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class LuceneDocumentAE
Throws:
org.apache.uima.resource.ResourceInitializationException

process

public void process(org.apache.uima.cas.CAS cas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

destroy

public void destroy()
Specified by:
destroy in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
destroy in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase

optimizeIndex

public void optimizeIndex()


Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.