Package org.elasticsearch.action.bulk
Class BulkShardRequest
- All Implemented Interfaces:
org.apache.lucene.util.Accountable,IndicesRequest,WriteRequest<BulkShardRequest>,Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest,RawIndexingDataTransportRequest
public class BulkShardRequest
extends ReplicatedWriteRequest<BulkShardRequest>
implements org.apache.lucene.util.Accountable, RawIndexingDataTransportRequest
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>Nested classes/interfaces inherited from interface org.elasticsearch.action.support.WriteRequest
WriteRequest.RefreshPolicy -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.replication.ReplicationRequest
DEFAULT_TIMEOUT, index, shardId, timeout, waitForActiveShardsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionBulkShardRequest(ShardId shardId, WriteRequest.RefreshPolicy refreshPolicy, BulkItemRequest[] items) -
Method Summary
Modifier and TypeMethodDescriptionReturns optional description of the request to be displayed by the task managerString[]indices()Returns the array of indices that the action relates toitems()voidonRetry()This method is called before this replication request is retried the first time.longprotected BulkShardRequestroutedBasedOnClusterVersion(long routedBasedOnClusterVersion)Sets the minimum version of the cluster state that is required on the next node before we redirect to another primary.toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.replication.ReplicatedWriteRequest
getRefreshPolicy, setRefreshPolicy, writeThinMethods inherited from class org.elasticsearch.action.support.replication.ReplicationRequest
createTask, index, index, indicesOptions, shardId, timeout, timeout, timeout, validate, waitForActiveShards, waitForActiveShards, waitForActiveShardsMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResourcesMethods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices, includeDataStreamsMethods inherited from interface org.elasticsearch.transport.RawIndexingDataTransportRequest
isRawIndexingDataMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
setParentTaskMethods inherited from interface org.elasticsearch.action.support.WriteRequest
setRefreshPolicy, validate
-
Field Details
-
COMPACT_SHARD_ID_VERSION
-
-
Constructor Details
-
BulkShardRequest
- Throws:
IOException
-
BulkShardRequest
public BulkShardRequest(ShardId shardId, WriteRequest.RefreshPolicy refreshPolicy, BulkItemRequest[] items)
-
-
Method Details
-
items
-
indices
Description copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
indicesin interfaceIndicesRequest- Overrides:
indicesin classReplicationRequest<BulkShardRequest>
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classReplicatedWriteRequest<BulkShardRequest>- Throws:
IOException
-
toString
- Specified by:
toStringin classReplicationRequest<BulkShardRequest>
-
getDescription
Description copied from interface:TaskAwareRequestReturns optional description of the request to be displayed by the task manager- Specified by:
getDescriptionin interfaceTaskAwareRequest- Overrides:
getDescriptionin classReplicationRequest<BulkShardRequest>
-
routedBasedOnClusterVersion
Description copied from class:ReplicationRequestSets the minimum version of the cluster state that is required on the next node before we redirect to another primary. Used to prevent redirect loops, see alsoAbstractRunnable.doRun()- Overrides:
routedBasedOnClusterVersionin classReplicationRequest<BulkShardRequest>
-
onRetry
public void onRetry()Description copied from class:ReplicationRequestThis method is called before this replication request is retried the first time.- Overrides:
onRetryin classReplicationRequest<BulkShardRequest>
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-