类 BroadcastResponse
java.lang.Object
org.easysearch.client.core.BroadcastResponse
public class BroadcastResponse
extends java.lang.Object
Represents a response to a request that is broadcast to a collection of shards.
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classBroadcastResponse.ShardsRepresents the results of a collection of shards on which a request was executed against. -
构造器概要
构造器 限定符 构造器 说明 protectedBroadcastResponse(BroadcastResponse.Shards shards) -
方法概要
修饰符和类型 方法 说明 protected static <T extends BroadcastResponse>
voiddeclareShardsField(org.easysearch.common.xcontent.ConstructingObjectParser<T,java.lang.Void> PARSER)static BroadcastResponsefromXContent(org.easysearch.common.xcontent.XContentParser parser)Parses a broadcast response.BroadcastResponse.Shardsshards()Represents the shard-level summary of the response execution.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
BroadcastResponse
-
-
方法详细资料
-
shards
Represents the shard-level summary of the response execution.- 返回:
- the shard-level response summary
-
fromXContent
public static BroadcastResponse fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOExceptionParses a broadcast response.- 参数:
parser- the parser- 返回:
- a broadcast response parsed from the specified parser
- 抛出:
java.io.IOException- if an I/O exception occurs parsing the response
-
declareShardsField
protected static <T extends BroadcastResponse> void declareShardsField(org.easysearch.common.xcontent.ConstructingObjectParser<T,java.lang.Void> PARSER)
-