public class IndexDeleteByQueryResponse extends ActionResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static IndexDeleteByQueryResponse[] |
EMPTY_ARRAY |
headersEMPTY_PARAMS| Constructor and Description |
|---|
IndexDeleteByQueryResponse(String index,
long found,
long deleted,
long missing,
long failed)
Instantiates an IndexDeleteByQueryResponse with given values for counters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDeleted() |
long |
getFailed() |
long |
getFound() |
String |
getIndex() |
long |
getMissing() |
void |
incrementDeleted() |
void |
incrementDeleted(long delta) |
void |
incrementFailed() |
void |
incrementFailed(long delta) |
void |
incrementFound() |
void |
incrementFound(long delta) |
void |
incrementMissing() |
void |
incrementMissing(long delta) |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final IndexDeleteByQueryResponse[] EMPTY_ARRAY
public IndexDeleteByQueryResponse(String index, long found, long deleted, long missing, long failed)
public String getIndex()
public long getFound()
public void incrementFound()
public void incrementFound(long delta)
public long getDeleted()
public void incrementDeleted()
public void incrementDeleted(long delta)
public long getMissing()
public void incrementMissing()
public void incrementMissing(long delta)
public long getFailed()
public void incrementFailed()
public void incrementFailed(long delta)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.