org.elasticsearch.common.xcontent.StatusToXContentObject, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObjectpublic class SearchTemplateResponse
extends org.elasticsearch.action.ActionResponse
implements org.elasticsearch.common.xcontent.StatusToXContentObject
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params| Modifier and Type | Method | Description |
|---|---|---|
org.elasticsearch.action.search.SearchResponse |
getResponse() |
|
org.elasticsearch.common.bytes.BytesReference |
getSource() |
|
boolean |
hasResponse() |
|
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
|
void |
setResponse(org.elasticsearch.action.search.SearchResponse searchResponse) |
|
void |
setSource(org.elasticsearch.common.bytes.BytesReference source) |
|
org.elasticsearch.rest.RestStatus |
status() |
|
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
|
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public org.elasticsearch.common.bytes.BytesReference getSource()
public void setSource(org.elasticsearch.common.bytes.BytesReference source)
public org.elasticsearch.action.search.SearchResponse getResponse()
public void setResponse(org.elasticsearch.action.search.SearchResponse searchResponse)
public boolean hasResponse()
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic org.elasticsearch.rest.RestStatus status()
status in interface org.elasticsearch.common.xcontent.StatusToXContentObject