public class CountResponse extends BroadcastOperationResponse
TransportResponse.Emptyheaders| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
The count of documents matching the query provided.
|
void |
readFrom(StreamInput in) |
RestStatus |
status() |
boolean |
terminatedEarly()
True if the request has been terminated early due to enough count
|
void |
writeTo(StreamOutput out) |
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShardsputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic long getCount()
public boolean terminatedEarly()
public RestStatus status()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastOperationResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastOperationResponseIOExceptionCopyright © 2009–2016. All rights reserved.