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