public class MultiSearchResponse extends ActionResponse implements Iterable<MultiSearchResponse.Item>, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiSearchResponse.Item
A search response item, holding the actual search response, or an error message if it failed.
|
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
MultiSearchResponse(MultiSearchResponse.Item[] items) |
| Modifier and Type | Method and Description |
|---|---|
MultiSearchResponse.Item[] |
getResponses()
The list of responses, the order is the same as the one provided in the request.
|
Iterator<MultiSearchResponse.Item> |
iterator() |
void |
readFrom(StreamInput in) |
String |
toString() |
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 MultiSearchResponse(MultiSearchResponse.Item[] items)
public Iterator<MultiSearchResponse.Item> iterator()
iterator in interface Iterable<MultiSearchResponse.Item>public MultiSearchResponse.Item[] getResponses()
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.