Package org.apache.solr.response
Class SmileResponseWriter
- java.lang.Object
-
- org.apache.solr.response.BinaryResponseWriter
-
- org.apache.solr.response.SmileResponseWriter
-
- All Implemented Interfaces:
BinaryQueryResponseWriter,QueryResponseWriter,NamedListInitializedPlugin
public class SmileResponseWriter extends BinaryResponseWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmileResponseWriter.SmileWriter-
Nested classes/interfaces inherited from class org.apache.solr.response.BinaryResponseWriter
BinaryResponseWriter.Resolver
-
-
Field Summary
-
Fields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
-
-
Constructor Summary
Constructors Constructor Description SmileResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(NamedList args)initwill be called just once, immediately after creation.voidwrite(OutputStream out, SolrQueryRequest request, SolrQueryResponse response)Use it to write the response in a binary format-
Methods inherited from class org.apache.solr.response.BinaryResponseWriter
getContentType, getParsedResponse, write
-
-
-
-
Method Detail
-
write
public void write(OutputStream out, SolrQueryRequest request, SolrQueryResponse response) throws IOException
Description copied from interface:BinaryQueryResponseWriterUse it to write the response in a binary format- Specified by:
writein interfaceBinaryQueryResponseWriter- Overrides:
writein classBinaryResponseWriter- Throws:
IOException
-
init
public void init(NamedList args)
Description copied from interface:QueryResponseWriterinitwill be called just once, immediately after creation.The args are user-level initialization parameters that may be specified when declaring a response writer in solrconfig.xml
- Specified by:
initin interfaceNamedListInitializedPlugin- Specified by:
initin interfaceQueryResponseWriter- Overrides:
initin classBinaryResponseWriter
-
-