RestHandlerpublic 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.RestChannelConsumerdeprecationLogger, logger, settingsMULTI_ALLOW_EXPLICIT_INDEX| Constructor | Description |
|---|---|
RestBulkAction(Settings settings,
RestController controller) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getName() |
|
BaseRestHandler.RestChannelConsumer |
prepareRequest(RestRequest request,
NodeClient client) |
Prepare the request for execution.
|
boolean |
supportsContentStream() |
Indicates if the RestHandler supports content as a stream.
|
logDeprecatedSetting, logRemovedSetting, nodeNamegetUsageCount, handleRequest, responseParams, unrecognizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanTripCircuitBreakerpublic RestBulkAction(Settings settings, RestController controller)
public java.lang.String getName()
getName in class BaseRestHandlerRestNodesUsageAction.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.