Class TransportGetFieldMappingsIndexAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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
Fields Modifier and Type Field Description protected ClusterServiceclusterService-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
transportService
-
-
Constructor Summary
Constructors Constructor Description TransportGetFieldMappingsIndexAction(Settings settings, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockExceptioncheckRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)protected GetFieldMappingsResponsenewResponse()protected booleanresolveIndex(GetFieldMappingsIndexRequest request)protected GetFieldMappingsResponseshardOperation(GetFieldMappingsIndexRequest request, ShardId shardId)protected ShardsIteratorshards(ClusterState state, TransportSingleShardAction.InternalRequest request)Returns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
logDeprecatedSetting, logRemovedSetting, nodeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
doExecute, execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.action.support.single.shard.TransportSingleShardAction
checkGlobalBlock, doExecute, isSubAction, resolveRequest
-
-
-
-
Field Detail
-
clusterService
protected final ClusterService clusterService
-
-
Constructor Detail
-
TransportGetFieldMappingsIndexAction
@Inject public TransportGetFieldMappingsIndexAction(Settings settings, ClusterService clusterService, TransportService transportService, IndicesService indicesService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
resolveIndex
protected boolean resolveIndex(GetFieldMappingsIndexRequest request)
- Specified by:
resolveIndexin classTransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
-
shards
protected ShardsIterator shards(ClusterState state, TransportSingleShardAction.InternalRequest request)
Description copied from class:TransportSingleShardActionReturns the candidate shards to execute the operation on ornullthe execute the operation locally (the node that received the request)- Specified by:
shardsin classTransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
-
shardOperation
protected GetFieldMappingsResponse shardOperation(GetFieldMappingsIndexRequest request, ShardId shardId)
- Specified by:
shardOperationin classTransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
-
newResponse
protected GetFieldMappingsResponse newResponse()
- Specified by:
newResponsein classTransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
-
checkRequestBlock
protected ClusterBlockException checkRequestBlock(ClusterState state, TransportSingleShardAction.InternalRequest request)
- Overrides:
checkRequestBlockin classTransportSingleShardAction<GetFieldMappingsIndexRequest,GetFieldMappingsResponse>
-
-