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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiTermVectorsResponse.FailuregetFailure()The failure if relevant.java.lang.StringgetId()The id of the document.java.lang.StringgetIndex()The index name of the document.TermVectorsResponsegetResponse()The actual get response,nullif its a failure.java.lang.StringgetType()The type of the document.booleanisFailed()Is this a failed execution?voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.static MultiTermVectorsItemResponsereadItemResponse(StreamInput in)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable
-
-
-
-
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,nullif 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:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
-