Streamablepublic class MultiGetItemResponse extends java.lang.Object implements Streamable
| Constructor | Description |
|---|---|
MultiGetItemResponse(GetResponse response,
MultiGetResponse.Failure failure) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReaderpublic 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.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOException