public class MutableShardRouting extends ImmutableShardRouting
ImmutableShardRouting this class keeps metadata of the current shard. But unlike
ImmutableShardRouting the information kept in this class can be modified.
These modifications include changing the primary state, relocating and assigning the shard
represented by this classToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamscurrentNodeId, index, primary, relocatingNodeId, restoreSource, shardId, state, unassignedInfo, versionEMPTY_PARAMS| Constructor and Description |
|---|
MutableShardRouting(ShardRouting copy) |
MutableShardRouting(ShardRouting copy,
long version) |
MutableShardRouting(String index,
int shardId,
String currentNodeId,
String relocatingNodeId,
RestoreSource restoreSource,
boolean primary,
ShardRoutingState state,
long version) |
| Modifier and Type | Method and Description |
|---|---|
int |
hashCode() |
active, assignedToNode, currentNodeId, equals, getId, getIndex, id, index, initializing, primary, readFrom, readFrom, readFromThin, readShardRoutingEntry, readShardRoutingEntry, relocating, relocatingNodeId, restoreSource, shardId, shardsIt, shortSummary, started, state, targetRoutingIfRelocating, toString, toXContent, unassigned, unassignedInfo, version, writeTo, writeToThinpublic MutableShardRouting(ShardRouting copy)
public MutableShardRouting(ShardRouting copy, long version)
public MutableShardRouting(String index, int shardId, String currentNodeId, String relocatingNodeId, RestoreSource restoreSource, boolean primary, ShardRoutingState state, long version)
public int hashCode()
hashCode in class ImmutableShardRoutingCopyright © 2009–2016. All rights reserved.