SearchResponse
instead.@Deprecated public class CountResponse extends BroadcastResponse
TransportResponse.Empty
headers
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, getTotalShards
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public CountResponse(SearchResponse searchResponse)
public long getCount()
public boolean terminatedEarly()
public RestStatus status()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class BroadcastResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastResponse
IOException
Copyright © 2009–2016. All rights reserved.