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