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 Modifier and Type Class Description static classBinaryRequestWriter.BAOS-
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.ContentWritergetContentWriter(SolrRequest<?> req)Use this to do a push writing instead of pull.StringgetUpdateContentType()voidwrite(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:RequestWriterUse this to do a push writing instead of pull. If this method returns nullRequestWriter.getContentStreams(SolrRequest)is invoked to do a pull write.- Overrides:
getContentWriterin classRequestWriter
-
getContentStreams
public Collection<ContentStream> getContentStreams(SolrRequest<?> req) throws IOException
- Overrides:
getContentStreamsin classRequestWriter- Throws:
IOException
-
getUpdateContentType
public String getUpdateContentType()
- Overrides:
getUpdateContentTypein classRequestWriter
-
write
public void write(SolrRequest<?> request, OutputStream os) throws IOException
- Overrides:
writein classRequestWriter- Throws:
IOException
-
-