Class BinaryRequestWriter
- java.lang.Object
-
- org.apache.solr.client.solrj.request.RequestWriter
-
- org.apache.solr.client.solrj.impl.BinaryRequestWriter
-
public class BinaryRequestWriter extends RequestWriter
A RequestWriter which writes requests in the javabin format- Since:
- solr 1.4
- See Also:
RequestWriter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.request.RequestWriter
RequestWriter.ContentWriter, RequestWriter.StringPayloadContentWriter
-
-
Constructor Summary
Constructors Constructor Description BinaryRequestWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ContentStream>
getContentStreams(SolrRequest<?> req)
RequestWriter.ContentWriter
getContentWriter(SolrRequest<?> req)
Use this to do a push writing instead of pull.String
getUpdateContentType()
void
write(SolrRequest<?> request, OutputStream os)
-
Methods inherited from class org.apache.solr.client.solrj.request.RequestWriter
getPath, isEmpty, isNull, isNull
-
-
-
-
Method Detail
-
getContentWriter
public RequestWriter.ContentWriter getContentWriter(SolrRequest<?> req)
Description copied from class:RequestWriter
Use this to do a push writing instead of pull. If this method returns nullRequestWriter.getContentStreams(SolrRequest)
is invoked to do a pull write.- Overrides:
getContentWriter
in classRequestWriter
-
getContentStreams
public Collection<ContentStream> getContentStreams(SolrRequest<?> req) throws IOException
- Overrides:
getContentStreams
in classRequestWriter
- Throws:
IOException
-
getUpdateContentType
public String getUpdateContentType()
- Overrides:
getUpdateContentType
in classRequestWriter
-
write
public void write(SolrRequest<?> request, OutputStream os) throws IOException
- Overrides:
write
in classRequestWriter
- Throws:
IOException
-
-