TextResponseWriter or BinaryResponseWriter see SOLR-2485public abstract class BaseResponseWriter
extends java.lang.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.
|
private static class |
BaseResponseWriter.IdxInfo
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. |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
Deprecated.
|
private static java.lang.String |
SCORE_FIELD
Deprecated.
|
| Constructor and Description |
|---|
BaseResponseWriter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private static SolrDocument |
getDoc(int id,
BaseResponseWriter.IdxInfo info)
Deprecated.
|
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. |
private static final org.slf4j.Logger LOG
private static final java.lang.String SCORE_FIELD
public void write(BaseResponseWriter.SingleResponseWriter responseWriter, SolrQueryRequest request, SolrQueryResponse response) throws java.io.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.java.io.IOException - If any error occurs.public void init(NamedList args)
private static SolrDocument getDoc(int id, BaseResponseWriter.IdxInfo info) throws java.io.IOException
java.io.IOException