public class AnalyzeResponse extends ActionResponse implements java.lang.Iterable<AnalyzeResponse.AnalyzeToken>, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeResponse.AnalyzeToken |
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
AnalyzeResponse(java.util.List<AnalyzeResponse.AnalyzeToken> tokens,
DetailAnalyzeResponse detail) |
Modifier and Type | Method and Description |
---|---|
DetailAnalyzeResponse |
detail() |
java.util.List<AnalyzeResponse.AnalyzeToken> |
getTokens() |
java.util.Iterator<AnalyzeResponse.AnalyzeToken> |
iterator() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
public AnalyzeResponse(java.util.List<AnalyzeResponse.AnalyzeToken> tokens, DetailAnalyzeResponse detail)
public java.util.List<AnalyzeResponse.AnalyzeToken> getTokens()
public DetailAnalyzeResponse detail()
public java.util.Iterator<AnalyzeResponse.AnalyzeToken> iterator()
iterator
in interface java.lang.Iterable<AnalyzeResponse.AnalyzeToken>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException