Package org.apache.solr.handler.loader
Class XMLLoader
- java.lang.Object
-
- org.apache.solr.handler.loader.ContentStreamLoader
-
- org.apache.solr.handler.loader.XMLLoader
-
public class XMLLoader extends ContentStreamLoader
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_TRANSFORMER_KEY
static int
XSLT_CACHE_DEFAULT
-
Constructor Summary
Constructors Constructor Description XMLLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultWT()
XMLLoader
init(SolrParams args)
This should be called once for each RequestHandlervoid
load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream, UpdateRequestProcessor processor)
Loaders are responsible for closing the streamSolrInputDocument
readDoc(XMLStreamReader parser)
Given the input stream, read a document
-
-
-
Field Detail
-
CONTEXT_TRANSFORMER_KEY
public static final String CONTEXT_TRANSFORMER_KEY
- See Also:
- Constant Field Values
-
XSLT_CACHE_DEFAULT
public static final int XSLT_CACHE_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public XMLLoader init(SolrParams args)
Description copied from class:ContentStreamLoader
This should be called once for each RequestHandler- Overrides:
init
in classContentStreamLoader
-
getDefaultWT
public String getDefaultWT()
- Overrides:
getDefaultWT
in classContentStreamLoader
-
load
public void load(SolrQueryRequest req, SolrQueryResponse rsp, 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
-
readDoc
public SolrInputDocument readDoc(XMLStreamReader parser) throws XMLStreamException
Given the input stream, read a document- Throws:
XMLStreamException
- Since:
- solr 1.3
-
-