primary
public boolean primary()
Returns the value of the
primary
record component.- Returns:
- the value of the
primary
record component
Writeable
, ToXContent
, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY, EMPTY_PARAMS
ShardView(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 boolean
forecastShardSizeInBytes
record component.forecastWriteLoad
record component.from(StreamInput in)
final int
hashCode()
index()
index
record component.node()
node
record component.boolean
nodeIsDesired
record component.boolean
primary()
primary
record component.relocatingNode
record component.relocatingNodeIsDesired
record component.int
shardId()
shardId
record component.state()
state
record component.tierPreference
record component.final String
toString()
toXContent(XContentBuilder builder,
ToXContent.Params params)
void
writeTo(StreamOutput out)
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
ShardView
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 componentIOException
Writeable
writeTo
in interface Writeable
IOException
toXContent
in interface ToXContent
IOException
Objects::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