public class MultiGetItemResponse extends Object implements Streamable
Constructor and Description |
---|
MultiGetItemResponse(GetResponse response,
MultiGetResponse.Failure failure) |
Modifier and Type | Method and Description |
---|---|
MultiGetResponse.Failure |
getFailure()
The failure if relevant.
|
String |
getId()
The id of the document.
|
String |
getIndex()
The index name of the document.
|
GetResponse |
getResponse()
The actual get response, null if its a failure.
|
String |
getType()
The type of the document.
|
boolean |
isFailed()
Is this a failed execution?
|
void |
readFrom(StreamInput in) |
static MultiGetItemResponse |
readItemResponse(StreamInput in) |
void |
writeTo(StreamOutput out) |
public MultiGetItemResponse(GetResponse response, MultiGetResponse.Failure failure)
public String getIndex()
public String getType()
public String getId()
public boolean isFailed()
public GetResponse getResponse()
public MultiGetResponse.Failure getFailure()
public static MultiGetItemResponse readItemResponse(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.