Package org.elasticsearch.client.core
Class CountResponse
java.lang.Object
org.elasticsearch.client.core.CountResponse
A response to _count API request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEncapsulates _shards section of count api response. -
Constructor Summary
ConstructorsConstructorDescriptionCountResponse(long count, Boolean terminatedEarly, CountResponse.ShardStats shardStats) -
Method Summary
Modifier and TypeMethodDescriptionstatic CountResponsefromXContent(org.elasticsearch.xcontent.XContentParser parser) longgetCount()Number of documents matching request.intThe failed number of shards the search was executed on.The failures that occurred during the search.intThe number of shards skipped due to pre-filteringintThe successful number of shards the search was executed on.intThe total number of shards the search was executed on.status()toString()
-
Constructor Details
-
CountResponse
-
-
Method Details
-
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
The failures that occurred during the search. -
status
-
fromXContent
public static CountResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
toString
-
isTerminatedEarly
-