Uses of Class
org.elasticsearch.index.shard.ShardId
-
-
Uses of ShardId in org.elasticsearch
Methods in org.elasticsearch that return ShardId Modifier and Type Method Description ShardIdElasticsearchException. getShardId()Methods in org.elasticsearch with parameters of type ShardId Modifier and Type Method Description voidElasticsearchException. setShard(ShardId shardId) -
Uses of ShardId in org.elasticsearch.action
Fields in org.elasticsearch.action declared as ShardId Modifier and Type Field Description protected ShardIdDocWriteResponse.Builder. shardIdMethods in org.elasticsearch.action that return ShardId Modifier and Type Method Description ShardIdDocWriteResponse.Builder. getShardId()ShardIdDocWriteResponse. getShardId()The exact shard the document was changed in.Methods in org.elasticsearch.action with parameters of type ShardId Modifier and Type Method Description voidDocWriteResponse.Builder. setShardId(ShardId shardId)Constructors in org.elasticsearch.action with parameters of type ShardId Constructor Description DocWriteResponse(ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, DocWriteResponse.Result result)NoShardAvailableActionException(ShardId shardId)NoShardAvailableActionException(ShardId shardId, String msg)NoShardAvailableActionException(ShardId shardId, String msg, Throwable cause)UnavailableShardsException(ShardId shardId, String message, Object... args) -
Uses of ShardId in org.elasticsearch.action.admin.cluster.allocation
Methods in org.elasticsearch.action.admin.cluster.allocation that return ShardId Modifier and Type Method Description ShardIdClusterAllocationExplanation. getShard()Returns the shard that the explanation is about. -
Uses of ShardId in org.elasticsearch.action.admin.cluster.shards
Methods in org.elasticsearch.action.admin.cluster.shards that return ShardId Modifier and Type Method Description ShardIdClusterSearchShardsGroup. getShardId()Constructors in org.elasticsearch.action.admin.cluster.shards with parameters of type ShardId Constructor Description ClusterSearchShardsGroup(ShardId shardId, ShardRouting[] shards) -
Uses of ShardId in org.elasticsearch.action.admin.cluster.snapshots.status
Methods in org.elasticsearch.action.admin.cluster.snapshots.status that return types with arguments of type ShardId Modifier and Type Method Description Map<Snapshot,Map<ShardId,SnapshotIndexShardStatus>>TransportNodesSnapshotsStatus.NodeSnapshotStatus. status()Constructor parameters in org.elasticsearch.action.admin.cluster.snapshots.status with type arguments of type ShardId Constructor Description NodeSnapshotStatus(DiscoveryNode node, Map<Snapshot,Map<ShardId,SnapshotIndexShardStatus>> status) -
Uses of ShardId in org.elasticsearch.action.admin.indices.analyze
Methods in org.elasticsearch.action.admin.indices.analyze with parameters of type ShardId Modifier and Type Method Description protected AnalyzeAction.ResponseTransportAnalyzeAction. shardOperation(AnalyzeAction.Request request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.admin.indices.close
Constructors in org.elasticsearch.action.admin.indices.close with parameters of type ShardId Constructor Description ShardRequest(ShardId shardId, ClusterBlock clusterBlock, boolean phase1, TaskId parentTaskId) -
Uses of ShardId in org.elasticsearch.action.admin.indices.flush
Methods in org.elasticsearch.action.admin.indices.flush with parameters of type ShardId Modifier and Type Method Description protected ShardFlushRequestTransportFlushAction. newShardRequest(FlushRequest request, ShardId shardId)Constructors in org.elasticsearch.action.admin.indices.flush with parameters of type ShardId Constructor Description ShardFlushRequest(FlushRequest request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.admin.indices.mapping.get
Methods in org.elasticsearch.action.admin.indices.mapping.get with parameters of type ShardId Modifier and Type Method Description protected GetFieldMappingsResponseTransportGetFieldMappingsIndexAction. shardOperation(GetFieldMappingsIndexRequest request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.admin.indices.refresh
Methods in org.elasticsearch.action.admin.indices.refresh with parameters of type ShardId Modifier and Type Method Description protected BasicReplicationRequestTransportRefreshAction. newShardRequest(RefreshRequest request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.admin.indices.segments
Methods in org.elasticsearch.action.admin.indices.segments that return ShardId Modifier and Type Method Description ShardIdIndexShardSegments. getShardId() -
Uses of ShardId in org.elasticsearch.action.admin.indices.stats
Methods in org.elasticsearch.action.admin.indices.stats that return ShardId Modifier and Type Method Description ShardIdIndexShardStats. getShardId()Constructors in org.elasticsearch.action.admin.indices.stats with parameters of type ShardId Constructor Description IndexShardStats(ShardId shardId, ShardStats[] shards) -
Uses of ShardId in org.elasticsearch.action.admin.indices.upgrade.get
Methods in org.elasticsearch.action.admin.indices.upgrade.get that return ShardId Modifier and Type Method Description ShardIdIndexShardUpgradeStatus. getShardId() -
Uses of ShardId in org.elasticsearch.action.admin.indices.validate.query
Constructors in org.elasticsearch.action.admin.indices.validate.query with parameters of type ShardId Constructor Description ShardValidateQueryRequest(ShardId shardId, AliasFilter filteringAliases, ValidateQueryRequest request) -
Uses of ShardId in org.elasticsearch.action.bulk
Methods in org.elasticsearch.action.bulk that return ShardId Modifier and Type Method Description ShardIdBulkShardResponse. getShardId()Methods in org.elasticsearch.action.bulk with parameters of type ShardId Modifier and Type Method Description voidMappingUpdatePerformer. updateMappings(Mapping update, ShardId shardId, String type, ActionListener<Void> listener)Update the mappings on the master.Constructors in org.elasticsearch.action.bulk with parameters of type ShardId Constructor Description BulkShardRequest(ShardId shardId, WriteRequest.RefreshPolicy refreshPolicy, BulkItemRequest[] items)BulkShardResponse(ShardId shardId, BulkItemResponse[] responses) -
Uses of ShardId in org.elasticsearch.action.delete
Constructors in org.elasticsearch.action.delete with parameters of type ShardId Constructor Description DeleteResponse(ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, boolean found) -
Uses of ShardId in org.elasticsearch.action.explain
Methods in org.elasticsearch.action.explain with parameters of type ShardId Modifier and Type Method Description protected voidTransportExplainAction. asyncShardOperation(ExplainRequest request, ShardId shardId, ActionListener<ExplainResponse> listener)protected StringTransportExplainAction. getExecutor(ExplainRequest request, ShardId shardId)protected ExplainResponseTransportExplainAction. shardOperation(ExplainRequest request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.fieldcaps
Methods in org.elasticsearch.action.fieldcaps with parameters of type ShardId Modifier and Type Method Description protected FieldCapabilitiesIndexResponseTransportFieldCapabilitiesIndexAction. shardOperation(FieldCapabilitiesIndexRequest request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.get
Methods in org.elasticsearch.action.get with parameters of type ShardId Modifier and Type Method Description protected voidTransportGetAction. asyncShardOperation(GetRequest request, ShardId shardId, ActionListener<GetResponse> listener)protected voidTransportShardMultiGetAction. asyncShardOperation(MultiGetShardRequest request, ShardId shardId, ActionListener<MultiGetShardResponse> listener)protected StringTransportGetAction. getExecutor(GetRequest request, ShardId shardId)protected StringTransportShardMultiGetAction. getExecutor(MultiGetShardRequest request, ShardId shardId)protected GetResponseTransportGetAction. shardOperation(GetRequest request, ShardId shardId)protected MultiGetShardResponseTransportShardMultiGetAction. shardOperation(MultiGetShardRequest request, ShardId shardId)Method parameters in org.elasticsearch.action.get with type arguments of type ShardId Modifier and Type Method Description protected voidTransportMultiGetAction. executeShardAction(ActionListener<MultiGetResponse> listener, AtomicArray<MultiGetItemResponse> responses, Map<ShardId,MultiGetShardRequest> shardRequests) -
Uses of ShardId in org.elasticsearch.action.index
Constructors in org.elasticsearch.action.index with parameters of type ShardId Constructor Description IndexResponse(ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, boolean created) -
Uses of ShardId in org.elasticsearch.action.resync
Constructors in org.elasticsearch.action.resync with parameters of type ShardId Constructor Description ResyncReplicationRequest(ShardId shardId, long trimAboveSeqNo, long maxSeenAutoIdTimestampOnPrimary, Translog.Operation[] operations) -
Uses of ShardId in org.elasticsearch.action.search
Constructors in org.elasticsearch.action.search with parameters of type ShardId Constructor Description SearchShardIterator(String clusterAlias, ShardId shardId, List<ShardRouting> shards, OriginalIndices originalIndices)Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId. -
Uses of ShardId in org.elasticsearch.action.support.broadcast
Methods in org.elasticsearch.action.support.broadcast that return ShardId Modifier and Type Method Description ShardIdBroadcastShardResponse. getShardId()ShardIdBroadcastShardRequest. shardId()Constructors in org.elasticsearch.action.support.broadcast with parameters of type ShardId Constructor Description BroadcastShardOperationFailedException(ShardId shardId, String msg)BroadcastShardOperationFailedException(ShardId shardId, String msg, Throwable cause)BroadcastShardOperationFailedException(ShardId shardId, Throwable cause)BroadcastShardRequest(ShardId shardId, OriginalIndices originalIndices)BroadcastShardRequest(ShardId shardId, BroadcastRequest<? extends BroadcastRequest<?>> request)BroadcastShardResponse(ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.support.replication
Fields in org.elasticsearch.action.support.replication declared as ShardId Modifier and Type Field Description protected ShardIdReplicationRequest. shardIdTarget shard the request should execute on.Methods in org.elasticsearch.action.support.replication that return ShardId Modifier and Type Method Description ShardIdReplicationResponse.ShardInfo.Failure. fullShardId()ShardIdReplicationRequest. shardId()Methods in org.elasticsearch.action.support.replication that return types with arguments of type ShardId Modifier and Type Method Description protected List<ShardId>TransportBroadcastReplicationAction. shards(Request request, ClusterState clusterState)Methods in org.elasticsearch.action.support.replication with parameters of type ShardId Modifier and Type Method Description voidReplicationOperation.Replicas. markShardCopyAsStaleIfNeeded(ShardId shardId, String allocationId, long primaryTerm, ActionListener<Void> listener)Marks shard copy as stale if needed, removing its allocation id from the set of in-sync allocation ids.voidTransportReplicationAction.ReplicasProxy. markShardCopyAsStaleIfNeeded(ShardId shardId, String allocationId, long primaryTerm, ActionListener<Void> listener)protected abstract ShardRequestTransportBroadcastReplicationAction. newShardRequest(Request request, ShardId shardId)protected voidTransportBroadcastReplicationAction. shardExecute(Task task, Request request, ShardId shardId, ActionListener<ShardResponse> shardActionListener)Constructors in org.elasticsearch.action.support.replication with parameters of type ShardId Constructor Description BasicReplicationRequest(ShardId shardId)Creates a new request with resolved shard idFailure(ShardId shardId, String nodeId, Exception cause, RestStatus status, boolean primary)ReplicatedWriteRequest(ShardId shardId)ReplicationRequest(ShardId shardId)Creates a new request with resolved shard idRetryOnReplicaException(ShardId shardId, String msg) -
Uses of ShardId in org.elasticsearch.action.support.single.instance
Fields in org.elasticsearch.action.support.single.instance declared as ShardId Modifier and Type Field Description protected ShardIdInstanceShardOperationRequest. shardId -
Uses of ShardId in org.elasticsearch.action.support.single.shard
Methods in org.elasticsearch.action.support.single.shard with parameters of type ShardId Modifier and Type Method Description protected voidTransportSingleShardAction. asyncShardOperation(Request request, ShardId shardId, ActionListener<Response> listener)protected StringTransportSingleShardAction. getExecutor(Request request, ShardId shardId)protected abstract ResponseTransportSingleShardAction. shardOperation(Request request, ShardId shardId) -
Uses of ShardId in org.elasticsearch.action.termvectors
Methods in org.elasticsearch.action.termvectors with parameters of type ShardId Modifier and Type Method Description protected voidTransportTermVectorsAction. asyncShardOperation(TermVectorsRequest request, ShardId shardId, ActionListener<TermVectorsResponse> listener)protected StringTransportShardMultiTermsVectorAction. getExecutor(MultiTermVectorsShardRequest request, ShardId shardId)protected StringTransportTermVectorsAction. getExecutor(TermVectorsRequest request, ShardId shardId)protected MultiTermVectorsShardResponseTransportShardMultiTermsVectorAction. shardOperation(MultiTermVectorsShardRequest request, ShardId shardId)protected TermVectorsResponseTransportTermVectorsAction. shardOperation(TermVectorsRequest request, ShardId shardId)Method parameters in org.elasticsearch.action.termvectors with type arguments of type ShardId Modifier and Type Method Description protected voidTransportMultiTermVectorsAction. executeShardAction(ActionListener<MultiTermVectorsResponse> listener, AtomicArray<MultiTermVectorsItemResponse> responses, Map<ShardId,MultiTermVectorsShardRequest> shardRequests) -
Uses of ShardId in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update that return ShardId Modifier and Type Method Description ShardIdUpdateRequest. getShardId()Methods in org.elasticsearch.action.update with parameters of type ShardId Modifier and Type Method Description protected UpdateHelper.ResultUpdateHelper. prepare(ShardId shardId, UpdateRequest request, GetResult getResult, LongSupplier nowInMillis)Prepares an update request by converting it into an index or delete request or an update response (no action, in the event of a noop).Constructors in org.elasticsearch.action.update with parameters of type ShardId Constructor Description UpdateResponse(ReplicationResponse.ShardInfo shardInfo, ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, DocWriteResponse.Result result)UpdateResponse(ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, DocWriteResponse.Result result)Constructor to be used when a update didn't translate in a write. -
Uses of ShardId in org.elasticsearch.cluster
Methods in org.elasticsearch.cluster that return types with arguments of type ShardId Modifier and Type Method Description ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus>RestoreInProgress.Entry. shards()Returns list of shards that being restore and their statusImmutableOpenMap<ShardId,SnapshotsInProgress.ShardSnapshotStatus>SnapshotsInProgress.Entry. shards()ImmutableOpenMap<String,List<ShardId>>SnapshotsInProgress.Entry. waitingIndices() -
Uses of ShardId in org.elasticsearch.cluster.action.shard
Methods in org.elasticsearch.cluster.action.shard that return ShardId Modifier and Type Method Description ShardIdShardStateAction.FailedShardEntry. getShardId()Methods in org.elasticsearch.cluster.action.shard with parameters of type ShardId Modifier and Type Method Description voidShardStateAction. remoteShardFailed(ShardId shardId, String allocationId, long primaryTerm, boolean markAsStale, String message, Exception failure, ActionListener<Void> listener)Send a shard failed request to the master node to update the cluster state with the failure of a shard on another node.Constructors in org.elasticsearch.cluster.action.shard with parameters of type ShardId Constructor Description FailedShardEntry(ShardId shardId, String allocationId, long primaryTerm, String message, Exception failure, boolean markAsStale)NoLongerPrimaryShardException(ShardId shardId, String msg)StartedShardEntry(ShardId shardId, String allocationId, long primaryTerm, String message) -
Uses of ShardId in org.elasticsearch.cluster.metadata
Methods in org.elasticsearch.cluster.metadata that return ShardId Modifier and Type Method Description static ShardIdIndexMetaData. selectCloneShard(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ID to clone the given target shard offstatic ShardIdIndexMetaData. selectSplitShard(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ID to split the given target shard offMethods in org.elasticsearch.cluster.metadata that return types with arguments of type ShardId Modifier and Type Method Description static Set<ShardId>IndexMetaData. selectRecoverFromShards(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Selects the source shards for a local shard recovery.static Set<ShardId>IndexMetaData. selectShrinkShards(int shardId, IndexMetaData sourceIndexMetadata, int numTargetShards)Returns the source shard ids to shrink into the given shard id. -
Uses of ShardId in org.elasticsearch.cluster.routing
Methods in org.elasticsearch.cluster.routing that return ShardId Modifier and Type Method Description ShardIdIndexShardRoutingTable. getShardId()Returns the shards idShardIdIndexShardRoutingTable. shardId()Returns the shards idShardIdOperationRouting. shardId(ClusterState clusterState, String index, String id, String routing)ShardIdPlainShardIterator. shardId()ShardIdShardIterator. shardId()The shard id this group relates to.ShardIdShardRouting. shardId()The shard id.Methods in org.elasticsearch.cluster.routing with parameters of type ShardId Modifier and Type Method Description ShardRoutingRoutingNodes. activePrimary(ShardId shardId)Returns the active primary shard for the given shard id ornullif no primary is found or the primary is not active.ShardRoutingRoutingNodes. activeReplicaWithHighestVersion(ShardId shardId)Returns one active replica shard for the given shard id ornullif no active replica is found.booleanRoutingNodes. allReplicasActive(ShardId shardId, MetaData metaData)Returnstrueiff all replicas are active for the given shard routing.List<ShardRouting>RoutingNodes. assignedShards(ShardId shardId)Returns all shards that are not in the state UNASSIGNED with the same shard ID as the given shard.ShardRoutingRoutingNodes. getByAllocationId(ShardId shardId, String allocationId)ShardRoutingRoutingTable. getByAllocationId(ShardId shardId, String allocationId)ShardRoutingRoutingNode. getByShardId(ShardId id)static ShardRoutingShardRouting. newUnassigned(ShardId shardId, boolean primary, RecoverySource recoverySource, UnassignedInfo unassignedInfo)Creates a new unassigned shard.IndexShardRoutingTableRoutingTable. shardRoutingTable(ShardId shardId)All shards for the providedShardIdConstructors in org.elasticsearch.cluster.routing with parameters of type ShardId Constructor Description Builder(ShardId shardId)PlainShardIterator(ShardId shardId, List<ShardRouting> shards)Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId.ShardRouting(ShardId shardId, StreamInput in) -
Uses of ShardId in org.elasticsearch.cluster.routing.allocation
Methods in org.elasticsearch.cluster.routing.allocation that return ShardId Modifier and Type Method Description ShardIdStaleShard. getShardId()The shard id of the stale shard.Methods in org.elasticsearch.cluster.routing.allocation with parameters of type ShardId Modifier and Type Method Description voidRoutingAllocation. addIgnoreShardForNode(ShardId shardId, String nodeId)Set<String>RoutingAllocation. getIgnoreNodes(ShardId shardId)booleanRoutingAllocation. shouldIgnoreShardForNode(ShardId shardId, String nodeId)Returns whether the given node id should be ignored from consideration whenAllocationDecidersis deciding whether to allocate the specified shard id to that node.Constructors in org.elasticsearch.cluster.routing.allocation with parameters of type ShardId Constructor Description StaleShard(ShardId shardId, String allocationId) -
Uses of ShardId in org.elasticsearch.common.logging
Methods in org.elasticsearch.common.logging with parameters of type ShardId Modifier and Type Method Description static org.apache.logging.log4j.LoggerLoggers. getLogger(Class<?> clazz, ShardId shardId, String... prefixes)static org.apache.logging.log4j.LoggerLoggers. getLogger(String loggerName, ShardId shardId)Just likeLoggers.getLogger(Class, ShardId, String...)but String loggerName instead of Class and no extra prefixes. -
Uses of ShardId in org.elasticsearch.common.lucene
Methods in org.elasticsearch.common.lucene that return ShardId Modifier and Type Method Description ShardIdShardCoreKeyMap. getShardId(Object coreKey)Return theShardIdthat holds the given segment, ornullif this segment is not tracked. -
Uses of ShardId in org.elasticsearch.common.lucene.index
Methods in org.elasticsearch.common.lucene.index that return ShardId Modifier and Type Method Description ShardIdElasticsearchDirectoryReader. shardId()Returns the shard id this index belongs to.ShardIdElasticsearchLeafReader. shardId()Returns the shard id this segment belongs to.Methods in org.elasticsearch.common.lucene.index with parameters of type ShardId Modifier and Type Method Description static ElasticsearchDirectoryReaderElasticsearchDirectoryReader. wrap(DirectoryReader reader, ShardId shardId)Wraps the given reader in aElasticsearchDirectoryReaderas well as all it's sub-readers inElasticsearchLeafReaderto expose the given shard Id.Constructors in org.elasticsearch.common.lucene.index with parameters of type ShardId Constructor Description ElasticsearchLeafReader(LeafReader in, ShardId shardId)Construct a FilterLeafReader based on the specified base reader. -
Uses of ShardId in org.elasticsearch.env
Methods in org.elasticsearch.env that return ShardId Modifier and Type Method Description ShardIdShardLock. getShardId()Returns the locks shards Id.Methods in org.elasticsearch.env that return types with arguments of type ShardId Modifier and Type Method Description Set<ShardId>NodeEnvironment. findAllShardIds(Index index)Tries to find all allocated shards for the given index on the current node.Set<ShardId>NodeEnvironment. lockedShards()Returns all currently lock shards.Methods in org.elasticsearch.env with parameters of type ShardId Modifier and Type Method Description Path[]NodeEnvironment. availableShardPaths(ShardId shardId)Returns all shard paths excluding custom shard path.voidNodeEnvironment. deleteShardDirectorySafe(ShardId shardId, IndexSettings indexSettings)Deletes a shard data directory iff the shards locks were successfully acquired.ShardLockNodeEnvironment.ShardLocker. lock(ShardId shardId, String lockDetails, long lockTimeoutMS)PathNodeEnvironment.NodePath. resolve(ShardId shardId)Resolves the given shards directory against this NodePath ${data.paths}/nodes/{node.id}/indices/{index.uuid}/{shard.id}PathNodeEnvironment. resolveCustomLocation(IndexSettings indexSettings, ShardId shardId)Resolve the custom path for a index's shard.static PathNodeEnvironment. resolveCustomLocation(IndexSettings indexSettings, ShardId shardId, Path sharedDataPath, int nodeLockId)ShardLockNodeEnvironment. shardLock(ShardId id, String details)Tries to lock the given shards ID.ShardLockNodeEnvironment. shardLock(ShardId shardId, String details, long lockTimeoutMS)Tries to lock the given shards ID.Constructors in org.elasticsearch.env with parameters of type ShardId Constructor Description ShardLock(ShardId id)ShardLockObtainFailedException(ShardId shardId, String message)ShardLockObtainFailedException(ShardId shardId, String message, Throwable cause) -
Uses of ShardId in org.elasticsearch.gateway
Fields in org.elasticsearch.gateway declared as ShardId Modifier and Type Field Description protected ShardIdAsyncShardFetch. shardIdMethods in org.elasticsearch.gateway that return ShardId Modifier and Type Method Description ShardIdTransportNodesListGatewayStartedShards.NodeRequest. getShardId()ShardIdTransportNodesListGatewayStartedShards.Request. shardId()Methods in org.elasticsearch.gateway with parameters of type ShardId Modifier and Type Method Description voidAsyncShardFetch.Lister. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<NodesResponse> listener)voidTransportNodesListGatewayStartedShards. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListGatewayStartedShards.NodesGatewayStartedShards> listener)protected abstract voidAsyncShardFetch. reroute(ShardId shardId, String reason)Implement this in order to scheduled another round that causes a call to fetch data.Constructors in org.elasticsearch.gateway with parameters of type ShardId Constructor Description AsyncShardFetch(org.apache.logging.log4j.Logger logger, String type, ShardId shardId, AsyncShardFetch.Lister<? extends BaseNodesResponse<T>,T> action)FetchResult(ShardId shardId, Map<DiscoveryNode,T> data, Set<String> ignoreNodes)Request(ShardId shardId, DiscoveryNode[] nodes) -
Uses of ShardId in org.elasticsearch.index
Methods in org.elasticsearch.index with parameters of type ShardId Modifier and Type Method Description voidIndexService.ShardStoreDeleter. addPendingDelete(ShardId shardId, IndexSettings indexSettings)voidIndexingSlowLog. postIndex(ShardId shardId, Engine.Index indexOperation, Engine.IndexResult result)Method parameters in org.elasticsearch.index with type arguments of type ShardId Modifier and Type Method Description IndexShardIndexService. createShard(ShardRouting routing, Consumer<ShardId> globalCheckpointSyncer, RetentionLeaseSyncer retentionLeaseSyncer) -
Uses of ShardId in org.elasticsearch.index.cache.bitset
Methods in org.elasticsearch.index.cache.bitset with parameters of type ShardId Modifier and Type Method Description voidBitsetFilterCache.Listener. onCache(ShardId shardId, Accountable accountable)Called for each cached bitset on the cache event.voidBitsetFilterCache.Listener. onRemoval(ShardId shardId, Accountable accountable)Called for each cached bitset on the removal event.Constructors in org.elasticsearch.index.cache.bitset with parameters of type ShardId Constructor Description ShardBitsetFilterCache(ShardId shardId, IndexSettings indexSettings)Value(BitSet bitset, ShardId shardId) -
Uses of ShardId in org.elasticsearch.index.engine
Fields in org.elasticsearch.index.engine declared as ShardId Modifier and Type Field Description protected ShardIdEngine. shardIdMethods in org.elasticsearch.index.engine that return ShardId Modifier and Type Method Description ShardIdEngineConfig. getShardId()Returns the engines shard ID -
Uses of ShardId in org.elasticsearch.index.fielddata
Methods in org.elasticsearch.index.fielddata with parameters of type ShardId Modifier and Type Method Description default voidIndexFieldDataCache.Listener. onCache(ShardId shardId, String fieldName, Accountable ramUsage)Called after the fielddata is loaded during the cache phasevoidShardFieldData. onCache(ShardId shardId, String fieldName, Accountable ramUsage)default voidIndexFieldDataCache.Listener. onRemoval(ShardId shardId, String fieldName, boolean wasEvicted, long sizeInBytes)Called after the fielddata is unloadedvoidShardFieldData. onRemoval(ShardId shardId, String fieldName, boolean wasEvicted, long sizeInBytes) -
Uses of ShardId in org.elasticsearch.index.seqno
Methods in org.elasticsearch.index.seqno with parameters of type ShardId Modifier and Type Method Description voidRetentionLeaseBackgroundSyncAction. backgroundSync(ShardId shardId, RetentionLeases retentionLeases)Background sync the specified retention leases for the specified shard.voidRetentionLeaseSyncer. backgroundSync(ShardId shardId, RetentionLeases retentionLeases)voidRetentionLeaseSyncAction. sync(ShardId shardId, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener)Sync the specified retention leases for the specified shard.voidRetentionLeaseSyncer. sync(ShardId shardId, RetentionLeases retentionLeases, ActionListener<ReplicationResponse> listener)Represents a method that when invoked syncs retention leases to replica shards after a new retention lease is added on the primary.voidGlobalCheckpointSyncAction. updateGlobalCheckpointForShard(ShardId shardId)Constructors in org.elasticsearch.index.seqno with parameters of type ShardId Constructor Description AddRequest(ShardId shardId, String id, long retainingSequenceNumber, String source)RemoveRequest(ShardId shardId, String id)RenewRequest(ShardId shardId, String id, long retainingSequenceNumber, String source)ReplicationTracker(ShardId shardId, String allocationId, IndexSettings indexSettings, long operationPrimaryTerm, long globalCheckpoint, LongConsumer onGlobalCheckpointUpdated, LongSupplier currentTimeMillisSupplier, BiConsumer<RetentionLeases,ActionListener<ReplicationResponse>> onSyncRetentionLeases, Supplier<SafeCommitInfo> safeCommitInfoSupplier)Initialize the global checkpoint service.Request(ShardId shardId)Request(ShardId shardId, RetentionLeases retentionLeases)Request(ShardId shardId, RetentionLeases retentionLeases) -
Uses of ShardId in org.elasticsearch.index.shard
Fields in org.elasticsearch.index.shard declared as ShardId Modifier and Type Field Description protected ShardIdAbstractIndexShardComponent. shardIdMethods in org.elasticsearch.index.shard that return ShardId Modifier and Type Method Description static ShardIdShardUtils. extractShardId(DirectoryReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.static ShardIdShardUtils. extractShardId(LeafReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.static ShardIdShardId. fromString(String shardIdString)Parse the string representation of this shardId back to an object.ShardIdShardPath. getShardId()ShardIdAbstractIndexShardComponent. shardId()ShardIdIndexShardComponent. shardId()Methods in org.elasticsearch.index.shard with parameters of type ShardId Modifier and Type Method Description default voidIndexEventListener. afterIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)Called after the index shard has been closed.default voidIndexEventListener. afterIndexShardDeleted(ShardId shardId, Settings indexSettings)Called after the index shard has been deleted from disk.default voidIndexEventListener. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)Called before the index shard gets closed.default voidIndexEventListener. beforeIndexShardCreated(ShardId shardId, Settings indexSettings)Called before the index shard gets created.default voidIndexEventListener. beforeIndexShardDeleted(ShardId shardId, Settings indexSettings)Called before the index shard gets deleted from disk Note: this method is only executed on the first attempt of deleting the shard.intShardId. compareTo(ShardId o)static ShardPathShardPath. loadShardPath(org.apache.logging.log4j.Logger logger, NodeEnvironment env, ShardId shardId, IndexSettings indexSettings)This method walks through the nodes shard paths to find the data and state path for the given shard.static ShardPathShardPath. loadShardPath(org.apache.logging.log4j.Logger logger, ShardId shardId, IndexSettings indexSettings, Path[] availableShardPaths, int nodeLockId, Path sharedDataPath)This method walks through the nodes shard paths to find the data and state path for the given shard.default voidIndexEventListener. onStoreClosed(ShardId shardId)Called when the given shards store is closed.default voidIndexEventListener. onStoreCreated(ShardId shardId)Called when the given shards store is created.voidIndexingOperationListener.CompositeListener. postDelete(ShardId shardId, Engine.Delete delete, Exception ex)voidIndexingOperationListener.CompositeListener. postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result)default voidIndexingOperationListener. postDelete(ShardId shardId, Engine.Delete delete, Exception ex)Called after the delete operation occurred with engine level exception.default voidIndexingOperationListener. postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result)Called after the delete operation occurred.voidIndexingOperationListener.CompositeListener. postIndex(ShardId shardId, Engine.Index index, Exception ex)voidIndexingOperationListener.CompositeListener. postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult result)default voidIndexingOperationListener. postIndex(ShardId shardId, Engine.Index index, Exception ex)Called after the indexing operation occurred with engine level exception.default voidIndexingOperationListener. postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult result)Called after the indexing operation occurred.Engine.DeleteIndexingOperationListener.CompositeListener. preDelete(ShardId shardId, Engine.Delete delete)default Engine.DeleteIndexingOperationListener. preDelete(ShardId shardId, Engine.Delete delete)Called before the delete occurs.Engine.IndexIndexingOperationListener.CompositeListener. preIndex(ShardId shardId, Engine.Index operation)default Engine.IndexIndexingOperationListener. preIndex(ShardId shardId, Engine.Index operation)Called before the indexing occurs.static ShardPathShardPath. selectNewPathForShard(NodeEnvironment env, ShardId shardId, IndexSettings indexSettings, long avgShardSizeInBytes, Map<Path,Integer> dataPathToShardCount) -
Uses of ShardId in org.elasticsearch.index.snapshots
Constructors in org.elasticsearch.index.snapshots with parameters of type ShardId Constructor Description IndexShardRestoreException(ShardId shardId, String msg)IndexShardRestoreException(ShardId shardId, String msg, Throwable cause)IndexShardRestoreFailedException(ShardId shardId, String msg)IndexShardRestoreFailedException(ShardId shardId, String msg, Throwable cause)IndexShardSnapshotException(ShardId shardId, String msg)IndexShardSnapshotException(ShardId shardId, String msg, Throwable cause)IndexShardSnapshotException(ShardId shardId, Throwable cause)IndexShardSnapshotFailedException(ShardId shardId, String msg)IndexShardSnapshotFailedException(ShardId shardId, String msg, Throwable cause)IndexShardSnapshotFailedException(ShardId shardId, Throwable cause) -
Uses of ShardId in org.elasticsearch.index.store
Methods in org.elasticsearch.index.store with parameters of type ShardId Modifier and Type Method Description static Store.MetadataSnapshotStore. readMetadataSnapshot(Path indexLocation, ShardId shardId, NodeEnvironment.ShardLocker shardLocker, org.apache.logging.log4j.Logger logger)Reads a MetadataSnapshot from the given index locations or returns an empty snapshot if it can't be read.static voidStore. tryOpenIndex(Path indexLocation, ShardId shardId, NodeEnvironment.ShardLocker shardLocker, org.apache.logging.log4j.Logger logger)Tries to open an index for the given location.Constructors in org.elasticsearch.index.store with parameters of type ShardId Constructor Description DirectoryService(ShardId shardId, IndexSettings indexSettings)Store(ShardId shardId, IndexSettings indexSettings, Directory directory, ShardLock shardLock)Store(ShardId shardId, IndexSettings indexSettings, Directory directory, ShardLock shardLock, Store.OnClose onClose) -
Uses of ShardId in org.elasticsearch.index.translog
Methods in org.elasticsearch.index.translog that return ShardId Modifier and Type Method Description ShardIdTranslogConfig. getShardId()Returns the shard ID this config is created forMethods in org.elasticsearch.index.translog with parameters of type ShardId Modifier and Type Method Description static TranslogWriterTranslogWriter. create(ShardId shardId, String translogUUID, long fileGeneration, Path file, ChannelFactory channelFactory, ByteSizeValue bufferSize, long initialMinTranslogGen, long initialGlobalCheckpoint, LongSupplier globalCheckpointSupplier, LongSupplier minTranslogGenerationSupplier, long primaryTerm, TragicExceptionHolder tragedy, LongConsumer persistedSequenceNumberConsumer)static StringTranslog. createEmptyTranslog(Path location, long initialGlobalCheckpoint, ShardId shardId, long primaryTerm)Constructors in org.elasticsearch.index.translog with parameters of type ShardId Constructor Description TranslogConfig(ShardId shardId, Path translogPath, IndexSettings indexSettings, BigArrays bigArrays)Creates a new TranslogConfig instanceTranslogException(ShardId shardId, String msg)TranslogException(ShardId shardId, String msg, Throwable cause) -
Uses of ShardId in org.elasticsearch.index.warmer
Constructors in org.elasticsearch.index.warmer with parameters of type ShardId Constructor Description ShardIndexWarmerService(ShardId shardId, IndexSettings indexSettings) -
Uses of ShardId in org.elasticsearch.indices
Methods in org.elasticsearch.indices with parameters of type ShardId Modifier and Type Method Description voidIndicesService. addPendingDelete(ShardId shardId, IndexSettings settings)Adds a pending delete for the given index shard.IndicesService.ShardDeletionCheckResultIndicesService. canDeleteShardContent(ShardId shardId, IndexSettings indexSettings)ReturnsShardDeletionCheckResultsignaling whether the shards content for the given shard can be deleted.voidIndicesService. clearIndexShardCache(ShardId shardId, boolean queryCache, boolean fieldDataCache, boolean requestCache, String... fields)Clears the caches for the given shard id if the shard is still allocated on this nodevoidIndicesService. deleteShardStore(String reason, ShardId shardId, ClusterState clusterState)This method deletes the shard contents on disk for the given shard ID.QueryCacheStatsIndicesQueryCache. getStats(ShardId shard)Get usage statistics for the given shard.voidIndicesQueryCache. onClose(ShardId shardId)voidIndexingMemoryController. postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result)voidIndexingMemoryController. postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult result) -
Uses of ShardId in org.elasticsearch.indices.cluster
Methods in org.elasticsearch.indices.cluster that return ShardId Modifier and Type Method Description ShardIdIndicesClusterStateService.Shard. shardId()Returns the shard id of this shard.Methods in org.elasticsearch.indices.cluster with parameters of type ShardId Modifier and Type Method Description default TIndicesClusterStateService.AllocatedIndices. getShardOrNull(ShardId shardId)Returns shard for the specified id if it exists otherwise returnsnull. -
Uses of ShardId in org.elasticsearch.indices.fielddata.cache
Fields in org.elasticsearch.indices.fielddata.cache declared as ShardId Modifier and Type Field Description ShardIdIndicesFieldDataCache.Key. shardId -
Uses of ShardId in org.elasticsearch.indices.flush
Methods in org.elasticsearch.indices.flush that return ShardId Modifier and Type Method Description ShardIdShardsSyncedFlushResult. getShardId()ShardIdShardsSyncedFlushResult. shardId()ShardIdSyncedFlushService.InFlightOpsRequest. shardId()ShardIdSyncedFlushService.PreShardSyncedFlushRequest. shardId()ShardIdSyncedFlushService.ShardSyncedFlushRequest. shardId()Methods in org.elasticsearch.indices.flush with parameters of type ShardId Modifier and Type Method Description voidSyncedFlushService. attemptSyncedFlush(ShardId shardId, ActionListener<ShardsSyncedFlushResult> actionListener)protected voidSyncedFlushService. getInflightOpsCount(ShardId shardId, ClusterState state, IndexShardRoutingTable shardRoutingTable, ActionListener<org.elasticsearch.indices.flush.SyncedFlushService.InFlightOpsResponse> listener)returns the number of in flight operations on primary.Constructors in org.elasticsearch.indices.flush with parameters of type ShardId Constructor Description InFlightOpsRequest(ShardId shardId)PreShardSyncedFlushRequest(ShardId shardId)ShardsSyncedFlushResult(ShardId shardId, int totalShards, String failureReason)failure constructorShardsSyncedFlushResult(ShardId shardId, String syncId, int totalShards, Map<ShardRouting,SyncedFlushService.ShardSyncedFlushResponse> shardResponses)success constructorShardSyncedFlushRequest(ShardId shardId, String syncId, Engine.CommitId expectedCommitId) -
Uses of ShardId in org.elasticsearch.indices.recovery
Methods in org.elasticsearch.indices.recovery that return ShardId Modifier and Type Method Description ShardIdRecoveryState. getShardId()ShardIdRecoveryCleanFilesRequest. shardId()ShardIdRecoveryFileChunkRequest. shardId()ShardIdRecoveryFilesInfoRequest. shardId()ShardIdRecoveryTarget. shardId()ShardIdRecoveryTranslogOperationsRequest. shardId()ShardIdStartRecoveryRequest. shardId()Methods in org.elasticsearch.indices.recovery with parameters of type ShardId Modifier and Type Method Description voidPeerRecoverySourceService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)voidPeerRecoveryTargetService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)booleanRecoveriesCollection. cancelRecoveriesForShard(ShardId shardId, String reason)cancel all ongoing recoveries for the given shardRecoveriesCollection.RecoveryRefRecoveriesCollection. getRecoverySafe(long id, ShardId shardId)Similar toRecoveriesCollection.getRecovery(long)but throws an exception if no recovery is foundConstructors in org.elasticsearch.indices.recovery with parameters of type ShardId Constructor Description RecoverFilesRecoveryException(ShardId shardId, int numberOfFiles, ByteSizeValue totalFilesSize, Throwable cause)RecoveryFailedException(ShardId shardId, DiscoveryNode sourceNode, DiscoveryNode targetNode, String extraInfo, Throwable cause)RecoveryFileChunkRequest(long recoveryId, ShardId shardId, StoreFileMetaData metaData, long position, BytesReference content, boolean lastChunk, int totalTranslogOps, long sourceThrottleTimeInNanos)RemoteRecoveryTargetHandler(long recoveryId, ShardId shardId, TransportService transportService, DiscoveryNode targetNode, RecoverySettings recoverySettings, Consumer<Long> onSourceThrottle)StartRecoveryRequest(ShardId shardId, String targetAllocationId, DiscoveryNode sourceNode, DiscoveryNode targetNode, Store.MetadataSnapshot metadataSnapshot, boolean primaryRelocation, long recoveryId, long startingSeqNo)Construct a request for starting a peer recovery. -
Uses of ShardId in org.elasticsearch.indices.store
Methods in org.elasticsearch.indices.store that return ShardId Modifier and Type Method Description ShardIdTransportNodesListShardStoreMetaData.StoreFilesMetaData. shardId()Methods in org.elasticsearch.indices.store with parameters of type ShardId Modifier and Type Method Description voidTransportNodesListShardStoreMetaData. list(ShardId shardId, DiscoveryNode[] nodes, ActionListener<TransportNodesListShardStoreMetaData.NodesStoreFilesMetaData> listener)Constructors in org.elasticsearch.indices.store with parameters of type ShardId Constructor Description Request(ShardId shardId, DiscoveryNode[] nodes)StoreFilesMetaData(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, List<RetentionLease> peerRecoveryRetentionLeases) -
Uses of ShardId in org.elasticsearch.repositories
Methods in org.elasticsearch.repositories with parameters of type ShardId Modifier and Type Method Description IndexShardSnapshotStatusRepository. getShardSnapshotStatus(SnapshotId snapshotId, Version version, IndexId indexId, ShardId shardId)Retrieve shard snapshot status for the stored snapshotdefault voidRepository. restoreShard(IndexShard shard, Store store, SnapshotId snapshotId, Version version, IndexId indexId, ShardId snapshotShardId, RecoveryState recoveryState)Deprecated.voidRepository. restoreShard(Store store, SnapshotId snapshotId, Version version, IndexId indexId, ShardId snapshotShardId, RecoveryState recoveryState)Restores snapshot of the shard. -
Uses of ShardId in org.elasticsearch.repositories.blobstore
Fields in org.elasticsearch.repositories.blobstore declared as ShardId Modifier and Type Field Description protected ShardIdFileRestoreContext. shardIdMethods in org.elasticsearch.repositories.blobstore with parameters of type ShardId Modifier and Type Method Description IndexShardSnapshotStatusBlobStoreRepository. getShardSnapshotStatus(SnapshotId snapshotId, Version version, IndexId indexId, ShardId shardId)voidBlobStoreRepository. restoreShard(Store store, SnapshotId snapshotId, Version version, IndexId indexId, ShardId snapshotShardId, RecoveryState recoveryState)Constructors in org.elasticsearch.repositories.blobstore with parameters of type ShardId Constructor Description FileRestoreContext(String repositoryName, ShardId shardId, SnapshotId snapshotId, RecoveryState recoveryState, int bufferSize)Constructs new restore context -
Uses of ShardId in org.elasticsearch.search
Methods in org.elasticsearch.search that return ShardId Modifier and Type Method Description ShardIdSearchShardTarget. getShardId()Constructors in org.elasticsearch.search with parameters of type ShardId Constructor Description SearchShardTarget(String nodeId, ShardId shardId, String clusterAlias, OriginalIndices originalIndices) -
Uses of ShardId in org.elasticsearch.search.internal
Methods in org.elasticsearch.search.internal that return ShardId Modifier and Type Method Description ShardIdShardSearchRequest. shardId()Constructors in org.elasticsearch.search.internal with parameters of type ShardId Constructor Description ShardSearchRequest(OriginalIndices originalIndices, SearchRequest searchRequest, ShardId shardId, int numberOfShards, AliasFilter aliasFilter, float indexBoost, long nowInMillis, String clusterAlias, String[] indexRoutings)ShardSearchRequest(ShardId shardId, String[] types, long nowInMillis, AliasFilter aliasFilter) -
Uses of ShardId in org.elasticsearch.snapshots
Methods in org.elasticsearch.snapshots that return ShardId Modifier and Type Method Description ShardIdSnapshotShardsService.UpdateIndexShardSnapshotStatusRequest. shardId()Methods in org.elasticsearch.snapshots that return types with arguments of type ShardId Modifier and Type Method Description Map<ShardId,IndexShardSnapshotStatus>SnapshotShardsService. currentSnapshotShards(Snapshot snapshot)Returns status of shards that are snapshotted on the node and belong to the given snapshotMap<ShardId,IndexShardSnapshotStatus>SnapshotsService. snapshotShards(String repositoryName, RepositoryData repositoryData, SnapshotInfo snapshotInfo)Returns status of shards currently finished snapshotsMethods in org.elasticsearch.snapshots with parameters of type ShardId Modifier and Type Method Description voidSnapshotShardsService. beforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings)Method parameters in org.elasticsearch.snapshots with type arguments of type ShardId Modifier and Type Method Description static booleanRestoreService. completed(ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)static intRestoreService. failedShards(ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)static RestoreInProgress.StateRestoreService. overallState(RestoreInProgress.State nonCompletedState, ImmutableOpenMap<ShardId,RestoreInProgress.ShardRestoreStatus> shards)Constructors in org.elasticsearch.snapshots with parameters of type ShardId Constructor Description SnapshotShardFailure(String nodeId, ShardId shardId, String reason)Constructs new snapshot shard failure objectUpdateIndexShardSnapshotStatusRequest(Snapshot snapshot, ShardId shardId, SnapshotsInProgress.ShardSnapshotStatus status)
-