JavaScript is disabled on your browser.
Performs shard-level bulk (index, delete or update) operations
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
TransportReplicationAction.ConcreteReplicaRequest <R extends TransportRequest >, TransportReplicationAction.ConcreteShardRequest <R extends TransportRequest >, TransportReplicationAction.PrimaryActionExecution , TransportReplicationAction.PrimaryResult <ReplicaRequest extends ReplicationRequest <ReplicaRequest >,Response extends ReplicationResponse >, TransportReplicationAction.ReplicaActionExecution , TransportReplicationAction.ReplicaResponse , TransportReplicationAction.ReplicaResult , TransportReplicationAction.ReplicasProxy , TransportReplicationAction.RetryOnReplicaException , TransportReplicationAction.SyncGlobalCheckpointAfterOperation
Field Summary
Fields
Fields inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
clusterService , executor , forceExecutionOnPrimary , indicesService , REPLICATION_INITIAL_RETRY_BACKOFF_BOUND , REPLICATION_RETRY_TIMEOUT , shardStateAction , threadPool , transportOptions , transportPrimaryAction , transportReplicaAction , transportService
Constructor Summary
Constructors
TransportShardBulkAction (Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
MappingUpdatedAction mappingUpdatedAction,
UpdateHelper updateHelper,
ActionFilters actionFilters,
IndexingPressure indexingPressure,
SystemIndices systemIndices,
DocumentParsingProvider documentParsingProvider)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
protected void
protected void
static void
static void
performOnPrimary (BulkShardRequest request,
IndexShard primary,
UpdateHelper updateHelper,
LongSupplier nowInMillisSupplier,
MappingUpdatePerformer mappingUpdater,
ObjLongConsumer <ActionListener <Void >> waitForMappingUpdate,
ActionListener <TransportReplicationAction.PrimaryResult <BulkShardRequest ,BulkShardResponse >> listener,
Executor executor,
PostWriteRefresh postWriteRefresh,
Consumer <Runnable > postWriteAction,
DocumentParsingProvider documentParsingProvider)
protected int
protected long
protected int
protected long
protected void
Called on the primary with a reference to the primary
IndexShard to modify.
Methods inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
checkOperationLimits , checkPrimaryLimits , checkReplicaLimits , executor , force , globalBlockLevel , indexBlockLevel , isSystemShard , locationToSync , newReplicasProxy , shardOperationOnReplica , syncOperationResultOrThrow
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
ACTION_NAME
public static final String ACTION_NAME
See Also:
Constructor Details
TransportShardBulkAction
@Inject
public TransportShardBulkAction (Settings settings,
TransportService transportService,
ClusterService clusterService,
IndicesService indicesService,
ThreadPool threadPool,
ShardStateAction shardStateAction,
MappingUpdatedAction mappingUpdatedAction,
UpdateHelper updateHelper,
ActionFilters actionFilters,
IndexingPressure indexingPressure,
SystemIndices systemIndices,
DocumentParsingProvider documentParsingProvider)
Method Details
shardOperationOnPrimary
Called on the primary with a reference to the primary
IndexShard to modify.
Overrides:
shardOperationOnPrimary
in class TransportWriteAction <BulkShardRequest ,BulkShardRequest ,BulkShardResponse >
Parameters:
request
- the request to the primary shard
primary
- the primary shard to perform the operation on
listener
- listener for the result of the operation on primary, including current translog location and operation response
and failure async refresh is performed on the primary
shard according to the Request
refresh policy
performOnPrimary
public static void performOnPrimary (BulkShardRequest request,
IndexShard primary,
UpdateHelper updateHelper,
LongSupplier nowInMillisSupplier,
MappingUpdatePerformer mappingUpdater,
ObjLongConsumer <ActionListener <Void >> waitForMappingUpdate,
ActionListener <TransportReplicationAction.PrimaryResult <BulkShardRequest ,BulkShardResponse >> listener,
Executor executor,
@Nullable
PostWriteRefresh postWriteRefresh,
@Nullable
Consumer <Runnable > postWriteAction,
DocumentParsingProvider documentParsingProvider)