Package org.elasticsearch.client.core
Class BroadcastResponse.Shards
java.lang.Object
org.elasticsearch.client.core.BroadcastResponse.Shards
- Enclosing class:
- BroadcastResponse
Represents the results of a collection of shards on which a request was executed against.
-
Method Summary
Modifier and TypeMethodDescriptionintfailed()The number of shards on which a request failed to be executed against.failures()The failures corresponding to the shards on which a request failed to be executed against.intskipped()The number of shards skipped by the request.intThe number of successful shards on which a request was executed against.inttotal()The total number of shards on which a request was executed against.
-
Method Details
-
total
public int total()The total number of shards on which a request was executed against.- Returns:
- the total number of shards
-
successful
public int successful()The number of successful shards on which a request was executed against.- Returns:
- the number of successful shards
-
skipped
public int skipped()The number of shards skipped by the request.- Returns:
- the number of skipped shards
-
failed
public int failed()The number of shards on which a request failed to be executed against.- Returns:
- the number of failed shards
-
failures
The failures corresponding to the shards on which a request failed to be executed against. Note that the number of failures might not matchfailed()as some responses group together shard failures.- Returns:
- the failures
-