Package org.elasticsearch.client.core
Class CountResponse
java.lang.Object
org.elasticsearch.client.core.CountResponse
A response to _count API request.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Encapsulates _shards section of count api response. -
Constructor Summary
ConstructorDescriptionCountResponse
(long count, Boolean terminatedEarly, CountResponse.ShardStats shardStats) -
Method Summary
Modifier and TypeMethodDescriptionstatic CountResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) long
getCount()
Number of documents matching request.int
The failed number of shards the search was executed on.org.elasticsearch.action.search.ShardSearchFailure[]
The failures that occurred during the search.int
The number of shards skipped due to pre-filteringint
The successful number of shards the search was executed on.int
The total number of shards the search was executed on.org.elasticsearch.rest.RestStatus
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
public org.elasticsearch.action.search.ShardSearchFailure[] getShardFailures()The failures that occurred during the search. -
status
public org.elasticsearch.rest.RestStatus status() -
fromXContent
public static CountResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
toString
-
isTerminatedEarly
-