Class RequestWriter
java.lang.Object
org.apache.solr.client.solrj.request.RequestWriter
- Direct Known Subclasses:
JavaBinRequestWriter,XMLRequestWriter
A RequestWriter is used to write requests to Solr.
A subclass can override the methods in this class to supply a custom format in which a request can be sent.
- Since:
- solr 1.4
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<ContentStream> getContentStreams(SolrRequest<?> req) Deprecated.abstract RequestWriter.ContentWritergetContentWriter(SolrRequest<?> req) To be implemented by subclasses to serialize update requests into the appropriate format.abstract Stringprotected booleanisEmpty(UpdateRequest updateRequest) protected booleanprotected booleanabstract voidwrite(SolrRequest<?> request, OutputStream os)
-
Constructor Details
-
RequestWriter
public RequestWriter()
-
-
Method Details
-
getContentWriter
To be implemented by subclasses to serialize update requests into the appropriate format.If this method returns null,
getContentStreams(SolrRequest)is then invoked to get content. -
getContentStreams
@Deprecated public abstract Collection<ContentStream> getContentStreams(SolrRequest<?> req) throws IOException Deprecated.- Throws:
IOException
-
isEmpty
-
write
- Throws:
IOException
-
getUpdateContentType
-
isNull
-
isNull
-
getContentWriter(SolrRequest).