Package org.elasticsearch.index.reindex
Class BulkIndexByScrollResponseContentListener
- java.lang.Object
-
- org.elasticsearch.rest.action.RestActionListener<Response>
-
- org.elasticsearch.rest.action.RestResponseListener<Response>
-
- org.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>
-
- org.elasticsearch.index.reindex.BulkIndexByScrollResponseContentListener
-
- All Implemented Interfaces:
org.elasticsearch.action.ActionListener<org.elasticsearch.index.reindex.BulkByScrollResponse>
public class BulkIndexByScrollResponseContentListener extends org.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>RestBuilderListener that returns higher than 200 status if there are any failures and allows to set XContent.Params.
-
-
Constructor Summary
Constructors Constructor Description BulkIndexByScrollResponseContentListener(org.elasticsearch.rest.RestChannel channel, java.util.Map<java.lang.String,java.lang.String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.rest.RestResponsebuildResponse(org.elasticsearch.index.reindex.BulkByScrollResponse response, org.elasticsearch.common.xcontent.XContentBuilder builder)
-
-
-
Method Detail
-
buildResponse
public org.elasticsearch.rest.RestResponse buildResponse(org.elasticsearch.index.reindex.BulkByScrollResponse response, org.elasticsearch.common.xcontent.XContentBuilder builder) throws java.lang.Exception- Specified by:
buildResponsein classorg.elasticsearch.rest.action.RestBuilderListener<org.elasticsearch.index.reindex.BulkByScrollResponse>- Throws:
java.lang.Exception
-
-