Package org.elasticsearch.action.bulk
Class TransportBulkAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<BulkRequest,BulkResponse>
org.elasticsearch.action.bulk.TransportBulkAction
Groups bulk request items by shard, optionally creating non-existent indices and
delegates to
TransportShardBulkAction for shard-level bulk execution-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportBulkAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, NodeClient client, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexingPressure indexingPressure, SystemIndices systemIndices)TransportBulkAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, NodeClient client, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexingPressure indexingPressure, SystemIndices systemIndices, LongSupplier relativeTimeProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(Task task, BulkRequest bulkRequest, ActionListener<BulkResponse> listener)protected voiddoInternalExecute(Task task, BulkRequest bulkRequest, String executorName, ActionListener<BulkResponse> listener)static IndexRequestgetIndexWriteRequest(DocWriteRequest<?> docWriteRequest)Retrieves theIndexRequestfrom the providedDocWriteRequestfor index or upsert actions.Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportBulkAction
@Inject public TransportBulkAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, NodeClient client, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexingPressure indexingPressure, SystemIndices systemIndices) -
TransportBulkAction
public TransportBulkAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, IngestService ingestService, TransportShardBulkAction shardBulkAction, NodeClient client, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexingPressure indexingPressure, SystemIndices systemIndices, LongSupplier relativeTimeProvider)
-
-
Method Details
-
getIndexWriteRequest
Retrieves theIndexRequestfrom the providedDocWriteRequestfor index or upsert actions. Upserts are modeled asIndexRequestinside theUpdateRequest. IgnoresDeleteRequest's- Parameters:
docWriteRequest- The request to find theIndexRequest- Returns:
- the found
IndexRequestornullif one can not be found.
-
doExecute
- Specified by:
doExecutein classTransportAction<BulkRequest,BulkResponse>
-
doInternalExecute
protected void doInternalExecute(Task task, BulkRequest bulkRequest, String executorName, ActionListener<BulkResponse> listener)
-