org.apache.uima.solrcas
Class SolrCASConsumer
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.solrcas.SolrCASConsumer
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
public class SolrCASConsumer
- extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
CAS Consumer to write on a Solr instance
Field Summary |
protected org.apache.solr.client.solrj.SolrServer |
solrServer
|
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_ImplBase |
getRequiredCasInterface, process |
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 |
solrServer
protected org.apache.solr.client.solrj.SolrServer solrServer
SolrCASConsumer
public SolrCASConsumer()
initialize
public void initialize(org.apache.uima.UimaContext context)
throws org.apache.uima.resource.ResourceInitializationException
- 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
typeSystemInit
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Overrides:
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
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
getURI
protected URI getURI(String path)
throws org.apache.uima.resource.ResourceAccessException,
IOException,
URISyntaxException
- Throws:
org.apache.uima.resource.ResourceAccessException
IOException
URISyntaxException
createServer
protected org.apache.solr.client.solrj.SolrServer createServer()
throws org.apache.solr.client.solrj.SolrServerException
- Throws:
org.apache.solr.client.solrj.SolrServerException
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.