org.apache.solr.handler.loader
Class ContentStreamLoader
java.lang.Object
org.apache.solr.handler.loader.ContentStreamLoader
- Direct Known Subclasses:
- CSVLoader, JavabinLoader, JsonLoader, XMLLoader
public abstract class ContentStreamLoader
- extends Object
Load a ContentStream into Solr
This should be thread safe and can be called from multiple threads
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentStreamLoader
public ContentStreamLoader()
init
public ContentStreamLoader init(SolrParams args)
- This should be called once for each RequestHandler
getDefaultWT
public String getDefaultWT()
load
public abstract void load(SolrQueryRequest req,
SolrQueryResponse rsp,
ContentStream stream,
UpdateRequestProcessor processor)
throws Exception
- Loaders are responsible for closing the stream
- Parameters:
req - The input SolrQueryRequestrsp - The response, in case the Loader wishes to add anythingstream - The ContentStream to addprocessor - The UpdateRequestProcessor to use
- Throws:
Exception
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.