TextResponseWriter or BinaryResponseWriter see SOLR-2485public abstract class BaseResponseWriter extends Object
QueryResponseWriters can be
developed. The class provides a single method
write(SingleResponseWriter, SolrQueryRequest, SolrQueryResponse)
that allows users to implement a BaseResponseWriter.SingleResponseWriter sub-class which
defines how to output SolrInputDocuments or a
SolrDocumentList.| Modifier and Type | Class and Description |
|---|---|
static class |
BaseResponseWriter.DocListInfo
Deprecated.
|
static class |
BaseResponseWriter.SingleResponseWriter
Deprecated.
Users wanting to define custom
QueryResponseWriters that deal with
SolrInputDocuments and SolrDocumentList should override the
methods for this class. |
| Constructor and Description |
|---|
BaseResponseWriter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(NamedList args)
Deprecated.
No ops implementation so that the implementing classes do not have to do it
|
void |
write(BaseResponseWriter.SingleResponseWriter responseWriter,
SolrQueryRequest request,
SolrQueryResponse response)
Deprecated.
The main method that allows users to write
BaseResponseWriter.SingleResponseWriters
and provide them as the initial parameter responseWriter to
this method which defines how output should be generated. |
public void write(BaseResponseWriter.SingleResponseWriter responseWriter, SolrQueryRequest request, SolrQueryResponse response) throws IOException
BaseResponseWriter.SingleResponseWriters
and provide them as the initial parameter responseWriter to
this method which defines how output should be generated.responseWriter - The user-provided BaseResponseWriter.SingleResponseWriter implementation.request - The provided SolrQueryRequest.response - The provided SolrQueryResponse.IOException - If any error occurs.public void init(NamedList args)