Package org.apache.solr.response
Class AnalyticsShardResponseWriter
- java.lang.Object
-
- org.apache.solr.response.AnalyticsShardResponseWriter
-
- All Implemented Interfaces:
BinaryQueryResponseWriter,QueryResponseWriter,NamedListInitializedPlugin
public class AnalyticsShardResponseWriter extends Object implements BinaryQueryResponseWriter
Writes the reduction data of a analytics shard request to a bit-stream to send to the originating shard. The response must be parsed by theAnalyticsShardResponseParserinitialized with the same analytics request as the shard request was sent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyticsShardResponseWriter.AnalyticsResponseManages the streaming of analytics reduction data if no exception occurred.
-
Field Summary
Fields Modifier and Type Field Description static StringANALYTICS_MANGERstatic StringNAME-
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 AnalyticsShardResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType(SolrQueryRequest request, SolrQueryResponse response)voidwrite(OutputStream out, SolrQueryRequest req, SolrQueryResponse response)voidwrite(Writer writer, SolrQueryRequest request, SolrQueryResponse response)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.response.BinaryQueryResponseWriter
serializeResponse
-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
ANALYTICS_MANGER
public static final String ANALYTICS_MANGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public void write(OutputStream out, SolrQueryRequest req, SolrQueryResponse response) throws IOException
- Specified by:
writein interfaceBinaryQueryResponseWriter- Throws:
IOException
-
write
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException
- Specified by:
writein interfaceQueryResponseWriter- Throws:
IOException
-
getContentType
public String getContentType(SolrQueryRequest request, SolrQueryResponse response)
- Specified by:
getContentTypein interfaceQueryResponseWriter
-
-