public class MultiTermVectorsItemResponse extends java.lang.Object implements Streamable
| Constructor and Description |
|---|
MultiTermVectorsItemResponse(TermVectorsResponse response,
MultiTermVectorsResponse.Failure failure) |
| Modifier and Type | Method and 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.
|
public MultiTermVectorsItemResponse(TermVectorsResponse response, MultiTermVectorsResponse.Failure failure)
public java.lang.String getIndex()
public java.lang.String getType()
public java.lang.String getId()
public boolean isFailed()
public TermVectorsResponse getResponse()
public MultiTermVectorsResponse.Failure getFailure()
public static MultiTermVectorsItemResponse 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