public class MultiTermVectorsItemResponse extends 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.
|
String |
getId()
The id of the document.
|
String |
getIndex()
The index name of the document.
|
TermVectorsResponse |
getResponse()
The actual get response, null if its a failure.
|
String |
getType()
The type of the document.
|
boolean |
isFailed()
Is this a failed execution?
|
void |
readFrom(StreamInput in) |
static MultiTermVectorsItemResponse |
readItemResponse(StreamInput in) |
void |
writeTo(StreamOutput out) |
public MultiTermVectorsItemResponse(TermVectorsResponse response, MultiTermVectorsResponse.Failure failure)
public String getIndex()
public String getType()
public String getId()
public boolean isFailed()
public TermVectorsResponse getResponse()
public MultiTermVectorsResponse.Failure getFailure()
public static MultiTermVectorsItemResponse readItemResponse(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.