Module org.elasticsearch.server
Class TransportGetFieldMappingsIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.single.shard.TransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
org.elasticsearch.action.admin.indices.mapping.get.TransportGetFieldMappingsIndexAction
public class TransportGetFieldMappingsIndexAction
extends TransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
Transport action used to retrieve the mappings related to fields that belong to a specific index
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
TransportSingleShardAction.InternalRequest
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ClusterService
static final ActionType<GetFieldMappingsResponse>
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportGetFieldMappingsIndexAction
(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkRequestBlock
(ClusterState state, TransportSingleShardAction<GetFieldMappingsIndexRequest, GetFieldMappingsResponse>.InternalRequest request) protected Writeable.Reader<GetFieldMappingsResponse>
protected boolean
resolveIndex
(GetFieldMappingsIndexRequest request) protected GetFieldMappingsResponse
shardOperation
(GetFieldMappingsIndexRequest request, ShardId shardId) protected ShardsIterator
shards
(ClusterState state, TransportSingleShardAction<GetFieldMappingsIndexRequest, GetFieldMappingsResponse>.InternalRequest request) Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
asyncShardOperation, checkGlobalBlock, doExecute, getExecutor, isSubAction, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Field Details
-
TYPE
-
clusterService
-
-
Constructor Details
-
TransportGetFieldMappingsIndexAction
@Inject public TransportGetFieldMappingsIndexAction(ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
resolveIndex
- Specified by:
resolveIndex
in classTransportSingleShardAction<GetFieldMappingsIndexRequest,
GetFieldMappingsResponse>
-
shards
protected ShardsIterator shards(ClusterState state, TransportSingleShardAction<GetFieldMappingsIndexRequest, GetFieldMappingsResponse>.InternalRequest request) Description copied from class:TransportSingleShardAction
Returns the candidate shards to execute the operation on ornull
the execute the operation locally (the node that received the request)- Specified by:
shards
in classTransportSingleShardAction<GetFieldMappingsIndexRequest,
GetFieldMappingsResponse>
-
shardOperation
protected GetFieldMappingsResponse shardOperation(GetFieldMappingsIndexRequest request, ShardId shardId) - Specified by:
shardOperation
in classTransportSingleShardAction<GetFieldMappingsIndexRequest,
GetFieldMappingsResponse>
-
getResponseReader
- Specified by:
getResponseReader
in classTransportSingleShardAction<GetFieldMappingsIndexRequest,
GetFieldMappingsResponse>
-
checkRequestBlock
protected ClusterBlockException checkRequestBlock(ClusterState state, TransportSingleShardAction<GetFieldMappingsIndexRequest, GetFieldMappingsResponse>.InternalRequest request) - Overrides:
checkRequestBlock
in classTransportSingleShardAction<GetFieldMappingsIndexRequest,
GetFieldMappingsResponse>
-