TextResponseWriter
or BinaryResponseWriter
see SOLR-2485public abstract class BaseResponseWriter extends Object
QueryResponseWriter
s 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 SolrInputDocument
s or a
SolrDocumentList
.Modifier and Type | Class and Description |
---|---|
static class |
BaseResponseWriter.DocListInfo
Deprecated.
|
static class |
BaseResponseWriter.SingleResponseWriter
Deprecated.
Users wanting to define custom
QueryResponseWriter s that deal with
SolrInputDocument s 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.SingleResponseWriter s
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.SingleResponseWriter
s
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)