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 StringCHILD_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.SolrInputDocumentbuildDoc(Map<String,Object> m)StringgetDefaultWT()voidload(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:
getDefaultWTin classContentStreamLoader
-
load
public void load(SolrQueryRequest req, SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, UpdateRequestProcessor processor) throws Exception
Description copied from class:ContentStreamLoaderLoaders are responsible for closing the stream- Specified by:
loadin classContentStreamLoader- Parameters:
req- The inputSolrQueryRequestrsp- The response, in case the Loader wishes to add anythingstream- TheContentStreamto addprocessor- TheUpdateRequestProcessorto use- Throws:
Exception
-
-