Package org.opensearch.rest.action.cat
Class RestCountAction
java.lang.Object
org.opensearch.rest.BaseRestHandler
org.opensearch.rest.action.cat.AbstractCatAction
org.opensearch.rest.action.cat.RestCountAction
- All Implemented Interfaces:
RestHandler
_cat API action to count documents in an index
- Opensearch.api:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.rest.BaseRestHandler
BaseRestHandler.RestChannelConsumer, BaseRestHandler.StreamingRestChannelConsumer, BaseRestHandler.Wrapper
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptiondoCatRequest
(RestRequest request, NodeClient client) protected void
getName()
protected Table
getTableWithHeader
(RestRequest request) routes()
The list ofRestHandler.Route
s that this RestHandler is responsible for handling.Methods inherited from class org.opensearch.rest.action.cat.AbstractCatAction
prepareRequest, responseParams
Methods inherited from class org.opensearch.rest.BaseRestHandler
getUsageCount, handleRequest, parseDeprecatedMasterTimeoutParameter, sendTask, unrecognized, unrecognizedStrings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.rest.RestHandler
allowsUnsafeBuffers, allowSystemIndexAccessByDefault, canTripCircuitBreaker, deprecatedRoutes, replacedRoutes, supportsContentStream, supportsStreaming
-
Constructor Details
-
RestCountAction
public RestCountAction()
-
-
Method Details
-
routes
Description copied from interface:RestHandler
The list ofRestHandler.Route
s that this RestHandler is responsible for handling. -
getName
- Specified by:
getName
in classBaseRestHandler
- Returns:
- the name of this handler. The name should be human readable and
should describe the action that will performed when this API is
called. This name is used in the response to the
RestNodesUsageAction
.
-
documentation
- Specified by:
documentation
in classAbstractCatAction
-
doCatRequest
- Specified by:
doCatRequest
in classAbstractCatAction
-
getTableWithHeader
- Specified by:
getTableWithHeader
in classAbstractCatAction
-