org.apache.uima.solrcas
Class SolrCASConsumer

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.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
           
 
Constructor Summary
SolrCASConsumer()
           
 
Method Summary
protected  org.apache.solr.client.solrj.SolrServer createServer()
           
protected  URI getURI(String path)
           
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.cas.CAS cas)
           
 void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
           
 
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
 

Field Detail

solrServer

protected org.apache.solr.client.solrj.SolrServer solrServer
Constructor Detail

SolrCASConsumer

public SolrCASConsumer()
Method Detail

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.