public class MultiGetItemResponse extends java.lang.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.
|
java.lang.String |
getId()
The id of the document.
|
java.lang.String |
getIndex()
The index name of the document.
|
GetResponse |
getResponse()
The actual get response, null if its a failure.
|
java.lang.String |
getType()
The type of the document.
|
boolean |
isFailed()
Is this a failed execution?
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static MultiGetItemResponse |
readItemResponse(StreamInput in) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public MultiGetItemResponse(GetResponse response, MultiGetResponse.Failure failure)
public java.lang.String getIndex()
public java.lang.String getType()
public java.lang.String getId()
public boolean isFailed()
public GetResponse getResponse()
public MultiGetResponse.Failure getFailure()
public static MultiGetItemResponse readItemResponse(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException