public class RestBulkAction extends BaseRestHandler
{ "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" }
{ "type1" : { "field1" : "value1" } }
{ "delete" : { "_index" : "test", "_type" : "type1", "_id" : "2" } }
{ "create" : { "_index" : "test", "_type" : "type1", "_id" : "1" }
{ "type1" : { "field1" : "value1" } }
BaseRestHandler.RestChannelConsumerMULTI_ALLOW_EXPLICIT_INDEXdeprecationLogger, logger, settings| Constructor and Description |
|---|
RestBulkAction(Settings settings,
RestController controller) |
| Modifier and Type | Method and Description |
|---|---|
BaseRestHandler.RestChannelConsumer |
prepareRequest(RestRequest request,
NodeClient client)
Prepare the request for execution.
|
boolean |
supportsContentStream()
Indicates if the RestHandler supports content as a stream.
|
handleRequest, responseParams, unrecognizedlogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanTripCircuitBreaker, supportsPlainTextpublic RestBulkAction(Settings settings, RestController controller)
public BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws java.io.IOException
BaseRestHandlerBaseRestHandler.responseParams() to indicate such
params.prepareRequest in class BaseRestHandlerrequest - the request to executeclient - client for executing actions on the local nodejava.io.IOException - if an I/O exception occurred parsing the request and preparing for
executionpublic boolean supportsContentStream()
RestHandlerXContent.streamSeparator(). If a handler returns true this will affect the types of content that can be sent to
this endpoint.