primary
public boolean primary()
- Returns:
- Whether this failure occurred on a primary shard. (this only reports true for delete by query)
, Writeable
, org.elasticsearch.common.xcontent.ToXContent
, org.elasticsearch.common.xcontent.ToXContentObject
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
cause, index, reason, status
EMPTY_PARAMS
Failure(StreamInput in)
Failure(ShardId shardId,
nodeId,
cause,
RestStatus status,
boolean primary)
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
nodeId()
boolean
primary()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
getCause, index, reason, shardId, status
, , , , , , , , , , ,
, , , , , , , , ,
isFragment
Writeable
toXContent
in interface org.elasticsearch.common.xcontent.ToXContent