Class BroadcastResponse.Shards

java.lang.Object
org.elasticsearch.client.core.BroadcastResponse.Shards
Enclosing class:
BroadcastResponse

public static class BroadcastResponse.Shards extends Object
Represents the results of a collection 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 match failed() as some responses group together shard failures.
      Returns:
      the failures