primary
public boolean primary()
Returns the value of the
primary record component.- Returns:
- the value of the
primaryrecord component
Writeable, ToXContent, ToXContentObjectDesiredBalanceResponseToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>EMPTY, EMPTY_PARAMSShardView(ShardRoutingState state,
boolean primary,
String node,
boolean nodeIsDesired,
String relocatingNode,
Boolean relocatingNodeIsDesired,
int shardId,
String index,
Double forecastWriteLoad,
Long forecastShardSizeInBytes,
List<String> tierPreference) ShardView record class.final booleanforecastShardSizeInBytes record component.forecastWriteLoad record component.from(StreamInput in) final inthashCode()index()index record component.node()node record component.booleannodeIsDesired record component.booleanprimary()primary record component.relocatingNode record component.relocatingNodeIsDesired record component.intshardId()shardId record component.state()state record component.tierPreference record component.final StringtoString()toXContent(XContentBuilder builder,
ToXContent.Params params) voidwriteTo(StreamOutput out) clone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentShardView record class.state - the value for the state record componentprimary - the value for the primary record componentnode - the value for the node record componentnodeIsDesired - the value for the nodeIsDesired record componentrelocatingNode - the value for the relocatingNode record componentrelocatingNodeIsDesired - the value for the relocatingNodeIsDesired record componentshardId - the value for the shardId record componentindex - the value for the index record componentforecastWriteLoad - the value for the forecastWriteLoad record componentforecastShardSizeInBytes - the value for the forecastShardSizeInBytes record componenttierPreference - the value for the tierPreference record componentIOExceptionWriteablewriteTo in interface WriteableIOExceptiontoXContent in interface ToXContentIOExceptionObjects::equals(Object,Object); primitive components are compared with '=='.state record component.state record componentprimary record component.primary record componentnode record component.node record componentnodeIsDesired record component.nodeIsDesired record componentrelocatingNode record component.relocatingNode record componentrelocatingNodeIsDesired record component.relocatingNodeIsDesired record componentshardId record component.shardId record componentindex record component.index record componentforecastWriteLoad record component.forecastWriteLoad record componentforecastShardSizeInBytes record component.forecastShardSizeInBytes record componenttierPreference record component.tierPreference record component