primary
public boolean primary()
- Returns:
- Whether this failure occurred on a primary shard. (this only reports true for delete by query)
Serializable
, Writeable
, ToXContent
, ToXContentObject
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
cause, index, reason, status
EMPTY_PARAMS
Failure(StreamInput in)
Failure(ShardId shardId,
String nodeId,
Exception cause,
RestStatus status,
boolean primary)
fromXContent(XContentParser parser)
nodeId()
boolean
primary()
toXContent(XContentBuilder builder,
ToXContent.Params params)
void
writeTo(StreamOutput out)
getCause, index, reason, shardId, status
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
IOException
Writeable
writeTo
in interface Writeable
IOException
toXContent
in interface ToXContent
IOException
IOException