类 SyncedFlushResponse.IndexResult
java.lang.Object
org.easysearch.client.SyncedFlushResponse.IndexResult
- 所有已实现的接口:
org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentFragment
- 封闭类:
- SyncedFlushResponse
public static final class SyncedFlushResponse.IndexResult
extends java.lang.Object
implements org.easysearch.common.xcontent.ToXContentFragment
Description for the flush/synced results for a particular index.
This includes total, successful and failed copies along with failure description for each failed copy.
-
嵌套类概要
从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringFAILED_FIELDstatic java.lang.StringFAILURES_FIELDstatic java.lang.StringSUCCESSFUL_FIELDstatic java.lang.StringTOTAL_FIELD从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS -
方法概要
修饰符和类型 方法 说明 intfailedShards()java.util.List<SyncedFlushResponse.ShardFailure>failures()static SyncedFlushResponse.IndexResultfromXContent(org.easysearch.common.xcontent.XContentParser parser)intsuccessfulShards()inttotalShards()org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentFragment
isFragment
-
字段详细资料
-
TOTAL_FIELD
public static final java.lang.String TOTAL_FIELD- 另请参阅:
- 常量字段值
-
SUCCESSFUL_FIELD
public static final java.lang.String SUCCESSFUL_FIELD- 另请参阅:
- 常量字段值
-
FAILED_FIELD
public static final java.lang.String FAILED_FIELD- 另请参阅:
- 常量字段值
-
FAILURES_FIELD
public static final java.lang.String FAILURES_FIELD- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
totalShards
public int totalShards()- 返回:
- The total number of shard copies that were processed for this index.
-
successfulShards
public int successfulShards()- 返回:
- The number of successful shard copies that were processed for this index.
-
failedShards
public int failedShards()- 返回:
- The number of failed shard copies that were processed for this index.
-
failures
- 返回:
- A list of
SyncedFlushResponse.ShardFailureobjects that describe each of the failed shard copies for this index.
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-
fromXContent
public static SyncedFlushResponse.IndexResult fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 抛出:
java.io.IOException
-