类 BroadcastResponse.Shards
java.lang.Object
org.easysearch.client.core.BroadcastResponse.Shards
- 封闭类:
- BroadcastResponse
public static class BroadcastResponse.Shards
extends java.lang.Object
Represents the results of a collection of shards on which a request was executed against.
-
方法概要
修饰符和类型 方法 说明 intfailed()The number of shards on which a request failed to be executed against.java.util.Collection<org.easysearch.action.support.DefaultShardOperationFailedException>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.intsuccessful()The number of successful shards on which a request was executed against.inttotal()The total number of shards on which a request was executed against.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
方法详细资料
-
total
public int total()The total number of shards on which a request was executed against.- 返回:
- the total number of shards
-
successful
public int successful()The number of successful shards on which a request was executed against.- 返回:
- the number of successful shards
-
skipped
public int skipped()The number of shards skipped by the request.- 返回:
- the number of skipped shards
-
failed
public int failed()The number of shards on which a request failed to be executed against.- 返回:
- the number of failed shards
-
failures
public java.util.Collection<org.easysearch.action.support.DefaultShardOperationFailedException> 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.- 返回:
- the failures
-