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
public abstract class ContentStreamLoader extends Object
Load aContentStreaminto SolrThis should be thread safe and can be called from multiple threads
-
-
Constructor Summary
Constructors Constructor Description ContentStreamLoader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDefaultWT()ContentStreamLoaderinit(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
-
-
-
Method Detail
-
init
public ContentStreamLoader init(org.apache.solr.common.params.SolrParams args)
This should be called once for each RequestHandler
-
getDefaultWT
public String 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
-
-