Package org.opensearch.index.reindex
Class RestReindexAction
java.lang.Object
org.opensearch.rest.BaseRestHandler
org.opensearch.index.reindex.AbstractBaseReindexRestHandler<ReindexRequest,ReindexAction>
org.opensearch.index.reindex.RestReindexAction
- All Implemented Interfaces:
RestHandler,RestRequestFilter
public class RestReindexAction
extends AbstractBaseReindexRestHandler<ReindexRequest,ReindexAction>
implements RestRequestFilter
Expose reindex over rest.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.rest.BaseRestHandler
BaseRestHandler.RestChannelConsumer, BaseRestHandler.WrapperNested classes/interfaces inherited from interface org.opensearch.rest.RestHandler
RestHandler.DeprecatedRoute, RestHandler.ReplacedRoute, RestHandler.Route -
Field Summary
Fields inherited from class org.opensearch.rest.BaseRestHandler
DUPLICATE_PARAMETER_ERROR_MESSAGE, logger, MULTI_ALLOW_EXPLICIT_INDEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReindexRequestbuildRequest(RestRequest request, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry) Build the Request based on the RestRequest.getName()prepareRequest(RestRequest request, NodeClient client) routes()Methods inherited from class org.opensearch.index.reindex.AbstractBaseReindexRestHandler
doPrepareRequest, parseRequestsPerSecond, setCommonOptionsMethods inherited from class org.opensearch.rest.BaseRestHandler
getUsageCount, handleRequest, parseDeprecatedMasterTimeoutParameter, responseParams, sendTask, unrecognized, unrecognizedStringsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.rest.RestHandler
allowsUnsafeBuffers, allowSystemIndexAccessByDefault, canTripCircuitBreaker, deprecatedRoutes, replacedRoutes, supportsContentStreamMethods inherited from interface org.opensearch.rest.RestRequestFilter
getFilteredRequest
-
Constructor Details
-
RestReindexAction
public RestReindexAction()
-
-
Method Details
-
routes
- Specified by:
routesin interfaceRestHandler
-
getName
- Specified by:
getNamein classBaseRestHandler
-
prepareRequest
public BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException - Specified by:
prepareRequestin classBaseRestHandler- Throws:
IOException
-
buildRequest
protected ReindexRequest buildRequest(RestRequest request, org.opensearch.core.common.io.stream.NamedWriteableRegistry namedWriteableRegistry) throws IOException Description copied from class:AbstractBaseReindexRestHandlerBuild the Request based on the RestRequest.- Specified by:
buildRequestin classAbstractBaseReindexRestHandler<ReindexRequest,ReindexAction> - Throws:
IOException
-
getFilteredFields
- Specified by:
getFilteredFieldsin interfaceRestRequestFilter
-