org.apache.uima.lucas.consumer
Class LuceneCASIndexer
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
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
|
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 |
indexWriter
protected org.apache.lucene.index.IndexWriter indexWriter
LuceneCASIndexer
public LuceneCASIndexer()
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.