org.apache.solr.response
Class BaseResponseWriter
java.lang.Object
org.apache.solr.response.BaseResponseWriter
- Direct Known Subclasses:
- GenericBinaryResponseWriter, GenericTextResponseWriter
public abstract class BaseResponseWriter
- extends Object
This class serves as a basis from which 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
.
- Since:
- 1.5
- Version:
- $Id: BaseResponseWriter.java 1065586 2011-01-31 13:01:48Z rmuir $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseResponseWriter
public BaseResponseWriter()
write
public void write(BaseResponseWriter.SingleResponseWriter responseWriter,
SolrQueryRequest request,
SolrQueryResponse response)
throws IOException
- 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.
- Parameters:
responseWriter
- The user-provided BaseResponseWriter.SingleResponseWriter
implementation.request
- The provided SolrQueryRequest
.response
- The provided SolrQueryResponse
.
- Throws:
IOException
- If any error occurs.
init
public void init(NamedList args)
- No ops implementation so that the implementing classes do not have to do it
Copyright © 2011 Apache Software Foundation. All Rights Reserved.