类 CountResponse
java.lang.Object
org.easysearch.client.core.CountResponse
public final class CountResponse
extends java.lang.Object
A response to _count API request.
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classCountResponse.ShardStatsEncapsulates _shards section of count api response. -
构造器概要
构造器 构造器 说明 CountResponse(long count, java.lang.Boolean terminatedEarly, CountResponse.ShardStats shardStats) -
方法概要
修饰符和类型 方法 说明 static CountResponsefromXContent(org.easysearch.common.xcontent.XContentParser parser)longgetCount()Number of documents matching request.intgetFailedShards()The failed number of shards the search was executed on.org.easysearch.action.search.ShardSearchFailure[]getShardFailures()The failures that occurred during the search.CountResponse.ShardStatsgetShardStats()intgetSkippedShards()The number of shards skipped due to pre-filteringintgetSuccessfulShards()The successful number of shards the search was executed on.intgetTotalShards()The total number of shards the search was executed on.java.lang.BooleanisTerminatedEarly()org.easysearch.rest.RestStatusstatus()java.lang.StringtoString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
构造器详细资料
-
CountResponse
public CountResponse(long count, java.lang.Boolean terminatedEarly, CountResponse.ShardStats shardStats)
-
-
方法详细资料
-
getShardStats
-
getCount
public long getCount()Number of documents matching request. -
getTotalShards
public int getTotalShards()The total number of shards the search was executed on. -
getSuccessfulShards
public int getSuccessfulShards()The successful number of shards the search was executed on. -
getSkippedShards
public int getSkippedShards()The number of shards skipped due to pre-filtering -
getFailedShards
public int getFailedShards()The failed number of shards the search was executed on. -
getShardFailures
public org.easysearch.action.search.ShardSearchFailure[] getShardFailures()The failures that occurred during the search. -
status
public org.easysearch.rest.RestStatus status() -
fromXContent
public static CountResponse fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 抛出:
java.io.IOException
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-
isTerminatedEarly
public java.lang.Boolean isTerminatedEarly()
-