TextResponseWriter see SOLR-2485public abstract class GenericTextResponseWriter extends BaseResponseWriter implements QueryResponseWriter
QueryResponseWriter implementation that requires a user to
implement the
getSingleResponseWriter(Writer, SolrQueryRequest, SolrQueryResponse)
that defines a BaseResponseWriter.SingleResponseWriter to handle plain ol' text output.BaseResponseWriter.DocListInfo, BaseResponseWriter.SingleResponseWriterCONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8| Constructor and Description |
|---|
GenericTextResponseWriter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract BaseResponseWriter.SingleResponseWriter |
getSingleResponseWriter(Writer writer,
SolrQueryRequest request,
SolrQueryResponse response)
Deprecated.
Users of this class should implement this method to define a
BaseResponseWriter.SingleResponseWriter responsible for writing text output given a
SolrDocumentList or doc-by-doc, given a SolrInputDocument. |
void |
write(Writer writer,
SolrQueryRequest request,
SolrQueryResponse response)
Deprecated.
Writes text output using the
BaseResponseWriter.SingleResponseWriter provided by a
call to
getSingleResponseWriter(Writer, SolrQueryRequest, SolrQueryResponse)
. |
init, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, initpublic void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException
BaseResponseWriter.SingleResponseWriter provided by a
call to
getSingleResponseWriter(Writer, SolrQueryRequest, SolrQueryResponse)
.write in interface QueryResponseWriterwriter - The Writer to write the text output to.request - The provided SolrQueryRequest.response - The provided SolrQueryResponse.IOExceptionprotected abstract BaseResponseWriter.SingleResponseWriter getSingleResponseWriter(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
BaseResponseWriter.SingleResponseWriter responsible for writing text output given a
SolrDocumentList or doc-by-doc, given a SolrInputDocument.writer - The Writer to write the text data response to.request - The provided SolrQueryRequest.response - The provided SolrQueryResponse.BaseResponseWriter.SingleResponseWriter that will be used to generate the
response output from this QueryResponseWriter.