RestHandler
public class RestMultiSearchAction extends BaseRestHandler
BaseRestHandler.RestChannelConsumer
deprecationLogger, logger, settings
MULTI_ALLOW_EXPLICIT_INDEX
Constructor | Description |
---|---|
RestMultiSearchAction(Settings settings,
RestController controller) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
|
static void |
parseMultiLineRequest(RestRequest request,
IndicesOptions indicesOptions,
boolean allowExplicitIndex,
CheckedBiConsumer<SearchRequest,XContentParser,java.io.IOException> consumer) |
Parses a multi-line
RestRequest body, instantiating a SearchRequest for each line and applying the given consumer. |
static MultiSearchRequest |
parseRequest(RestRequest restRequest,
boolean allowExplicitIndex) |
Parses a
RestRequest body and returns a MultiSearchRequest |
BaseRestHandler.RestChannelConsumer |
prepareRequest(RestRequest request,
NodeClient client) |
Prepare the request for execution.
|
protected java.util.Set<java.lang.String> |
responseParams() |
Parameters used for controlling the response and thus might not be consumed during
preparation of the request execution in
BaseRestHandler.prepareRequest(RestRequest, NodeClient) . |
boolean |
supportsContentStream() |
Indicates if the RestHandler supports content as a stream.
|
logDeprecatedSetting, logRemovedSetting, nodeName
getUsageCount, handleRequest, unrecognized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canTripCircuitBreaker
public RestMultiSearchAction(Settings settings, RestController controller)
public java.lang.String getName()
getName
in class BaseRestHandler
RestNodesUsageAction
.public BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws java.io.IOException
BaseRestHandler
BaseRestHandler.responseParams()
to indicate such
params.prepareRequest
in class BaseRestHandler
request
- 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 static MultiSearchRequest parseRequest(RestRequest restRequest, boolean allowExplicitIndex) throws java.io.IOException
RestRequest
body and returns a MultiSearchRequest
java.io.IOException
public static void parseMultiLineRequest(RestRequest request, IndicesOptions indicesOptions, boolean allowExplicitIndex, CheckedBiConsumer<SearchRequest,XContentParser,java.io.IOException> consumer) throws java.io.IOException
RestRequest
body, instantiating a SearchRequest
for each line and applying the given consumer.java.io.IOException
public boolean supportsContentStream()
RestHandler
XContent.streamSeparator()
. If a handler returns true this will affect the types of content that can be sent to
this endpoint.protected java.util.Set<java.lang.String> responseParams()
BaseRestHandler
BaseRestHandler.prepareRequest(RestRequest, NodeClient)
.responseParams
in class BaseRestHandler