Package org.apache.solr.response
Class AnalyticsShardResponseWriter
java.lang.Object
org.apache.solr.response.AnalyticsShardResponseWriter
- All Implemented Interfaces:
BinaryQueryResponseWriter,QueryResponseWriter,NamedListInitializedPlugin
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 the
AnalyticsShardResponseParser initialized with
the same analytics request as the shard request was sent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManages the streaming of analytics reduction data if no exception occurred. -
Field Summary
FieldsFields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContentType(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, waitMethods inherited from interface org.apache.solr.response.BinaryQueryResponseWriter
serializeResponseMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Field Details
-
NAME
- See Also:
-
ANALYTICS_MANGER
- See Also:
-
-
Constructor Details
-
AnalyticsShardResponseWriter
public AnalyticsShardResponseWriter()
-
-
Method Details
-
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
- Specified by:
getContentTypein interfaceQueryResponseWriter
-