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 theAnalyticsShardResponseParser
initialized with the same analytics request as the shard request was sent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnalyticsShardResponseWriter.AnalyticsResponse
Manages the streaming of analytics reduction data if no exception occurred.
-
Field Summary
Fields Modifier and Type Field Description static String
ANALYTICS_MANGER
static String
NAME
-
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 String
getContentType(SolrQueryRequest request, SolrQueryResponse response)
void
write(OutputStream out, SolrQueryRequest req, SolrQueryResponse response)
void
write(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.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:
write
in interfaceBinaryQueryResponseWriter
- Throws:
IOException
-
write
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException
- Specified by:
write
in interfaceQueryResponseWriter
- Throws:
IOException
-
getContentType
public String getContentType(SolrQueryRequest request, SolrQueryResponse response)
- Specified by:
getContentType
in interfaceQueryResponseWriter
-
-