Package org.apache.solr.handler.loader
Class JsonLoader
- java.lang.Object
-
- org.apache.solr.handler.loader.ContentStreamLoader
-
- org.apache.solr.handler.loader.JsonLoader
-
public class JsonLoader extends ContentStreamLoader
- Since:
- solr 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHILD_DOC_KEY
-
Constructor Summary
Constructors Constructor Description JsonLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.SolrInputDocument
buildDoc(Map<String,Object> m)
String
getDefaultWT()
void
load(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor)
Loaders are responsible for closing the stream-
Methods inherited from class org.apache.solr.handler.loader.ContentStreamLoader
init
-
-
-
-
Field Detail
-
CHILD_DOC_KEY
public static final String CHILD_DOC_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultWT
public String getDefaultWT()
- Overrides:
getDefaultWT
in classContentStreamLoader
-
load
public void load(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) throws Exception
Description copied from class:ContentStreamLoader
Loaders are responsible for closing the stream- Specified by:
load
in classContentStreamLoader
- Parameters:
req
- The inputSolrQueryRequest
rsp
- The response, in case the Loader wishes to add anythingstream
- TheContentStream
to addprocessor
- TheUpdateRequestProcessor
to use- Throws:
Exception
-
-