org.elasticsearch.action.search
Class MultiSearchResponse
java.lang.Object
org.elasticsearch.action.search.MultiSearchResponse
- All Implemented Interfaces:
- Iterable<MultiSearchResponse.Item>, ActionResponse, Streamable, ToXContent
public class MultiSearchResponse
- extends Object
- implements ActionResponse, Iterable<MultiSearchResponse.Item>, ToXContent
A multi search response.
Nested Class Summary |
static class |
MultiSearchResponse.Item
A search response item, holding the actual search response, or an error message if it failed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiSearchResponse
public MultiSearchResponse(MultiSearchResponse.Item[] items)
iterator
public Iterator<MultiSearchResponse.Item> iterator()
- Specified by:
iterator
in interface Iterable<MultiSearchResponse.Item>
responses
public MultiSearchResponse.Item[] responses()
- The list of responses, the order is the same as the one provided in the request.
getResponses
public MultiSearchResponse.Item[] getResponses()
- The list of responses, the order is the same as the one provided in the request.
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.