Package org.elasticsearch.action.get
Class MultiGetItemResponse
java.lang.Object
org.elasticsearch.action.get.MultiGetItemResponse
- All Implemented Interfaces:
Writeable
A single multi get response.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionMultiGetItemResponse
(GetResponse response, MultiGetResponse.Failure failure) -
Method Summary
Modifier and TypeMethodDescriptionThe failure if relevant.getId()
The id of the document.getIndex()
The index name of the document.The actual get response,null
if its a failure.getType()
The type of the document.boolean
isFailed()
Is this a failed execution?void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
MultiGetItemResponse
-
-
Method Details
-
getIndex
The index name of the document. -
getType
The type of the document. -
getId
The id of the document. -
isFailed
public boolean isFailed()Is this a failed execution? -
getResponse
The actual get response,null
if its a failure. -
getFailure
The failure if relevant. -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-