public class AnalyzeResponse extends ActionResponse implements Iterable<AnalyzeResponse.AnalyzeToken>, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
AnalyzeResponse.AnalyzeToken |
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
AnalyzeResponse(List<AnalyzeResponse.AnalyzeToken> tokens,
DetailAnalyzeResponse detail) |
| Modifier and Type | Method and Description |
|---|---|
DetailAnalyzeResponse |
detail() |
List<AnalyzeResponse.AnalyzeToken> |
getTokens() |
Iterator<AnalyzeResponse.AnalyzeToken> |
iterator() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic AnalyzeResponse(List<AnalyzeResponse.AnalyzeToken> tokens, DetailAnalyzeResponse detail)
public List<AnalyzeResponse.AnalyzeToken> getTokens()
public DetailAnalyzeResponse detail()
public Iterator<AnalyzeResponse.AnalyzeToken> iterator()
iterator in interface Iterable<AnalyzeResponse.AnalyzeToken>public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.