Class MultiTermVectorsItemResponse
- java.lang.Object
-
- org.elasticsearch.action.termvectors.MultiTermVectorsItemResponse
-
- All Implemented Interfaces:
Streamable
public class MultiTermVectorsItemResponse extends java.lang.Object implements Streamable
A single multi get response.
-
-
Constructor Summary
Constructors Constructor Description MultiTermVectorsItemResponse(TermVectorsResponse response, MultiTermVectorsResponse.Failure failure)
-
Method Summary
Modifier and Type Method Description MultiTermVectorsResponse.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.TermVectorsResponse
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 MultiTermVectorsItemResponse
readItemResponse(StreamInput in)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
-
-
-
Constructor Detail
-
MultiTermVectorsItemResponse
public MultiTermVectorsItemResponse(TermVectorsResponse response, MultiTermVectorsResponse.Failure failure)
-
-
Method Detail
-
getIndex
public java.lang.String getIndex()
The index name of the document.
-
getType
public java.lang.String getType()
The type of the document.
-
getId
public java.lang.String getId()
The id of the document.
-
isFailed
public boolean isFailed()
Is this a failed execution?
-
getResponse
public TermVectorsResponse getResponse()
The actual get response,null
if its a failure.
-
getFailure
public MultiTermVectorsResponse.Failure getFailure()
The failure if relevant.
-
readItemResponse
public static MultiTermVectorsItemResponse readItemResponse(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
-