Package org.apache.solr.handler.loader
Class ContentStreamLoader
java.lang.Object
org.apache.solr.handler.loader.ContentStreamLoader
- Direct Known Subclasses:
CSVLoader,CSVLoaderBase,JavabinLoader,JsonLoader,XMLLoader
Load a
ContentStream into Solr
This should be thread safe and can be called from multiple threads
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninit(org.apache.solr.common.params.SolrParams args) This should be called once for each RequestHandlerabstract voidload(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) Loaders are responsible for closing the stream
-
Constructor Details
-
ContentStreamLoader
public ContentStreamLoader()
-
-
Method Details
-
init
This should be called once for each RequestHandler -
getDefaultWT
-
load
public abstract void load(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) throws Exception Loaders are responsible for closing the stream- Parameters:
req- The inputSolrQueryRequestrsp- The response, in case the Loader wishes to add anythingstream- TheContentStreamto addprocessor- TheUpdateRequestProcessorto use- Throws:
Exception
-