Package org.apache.solr.response
Interface BinaryQueryResponseWriter
-
- All Superinterfaces:
NamedListInitializedPlugin
,QueryResponseWriter
- All Known Implementing Classes:
BinaryResponseWriter
,CborResponseWriter
,JacksonJsonWriter
,PrometheusResponseWriter
,RawResponseWriter
,SmileResponseWriter
public interface BinaryQueryResponseWriter extends QueryResponseWriter
Implementations ofBinaryQueryResponseWriter
are used to write response in binary format.Functionality is exactly same as its parent class
QueryResponseWriter
But it may not implement thewrite(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
method
-
-
Field Summary
-
Fields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
serializeResponse(SolrQueryRequest req, SolrQueryResponse rsp)
void
write(OutputStream out, SolrQueryRequest request, SolrQueryResponse response)
Use it to write the response in a binary format-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Methods inherited from interface org.apache.solr.response.QueryResponseWriter
getContentType, write
-
-
-
-
Method Detail
-
write
void write(OutputStream out, SolrQueryRequest request, SolrQueryResponse response) throws IOException
Use it to write the response in a binary format- Throws:
IOException
-
serializeResponse
default String serializeResponse(SolrQueryRequest req, SolrQueryResponse rsp)
-
-