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 aContentStream
into 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 String
getDefaultWT()
ContentStreamLoader
init(org.apache.solr.common.params.SolrParams args)
This should be called once for each RequestHandlerabstract void
load(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 inputSolrQueryRequest
rsp
- The response, in case the Loader wishes to add anythingstream
- TheContentStream
to addprocessor
- TheUpdateRequestProcessor
to use- Throws:
Exception
-
-