public static class AnalyzeResponse.AnalyzeToken extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
AnalyzeResponse.AnalyzeToken(String term,
int position,
int startOffset,
int endOffset,
String type,
Map<String,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes() |
int |
getEndOffset() |
int |
getPosition() |
int |
getStartOffset() |
String |
getTerm() |
String |
getType() |
static AnalyzeResponse.AnalyzeToken |
readAnalyzeToken(StreamInput in) |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public String getTerm()
public int getStartOffset()
public int getEndOffset()
public int getPosition()
public String getType()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic static AnalyzeResponse.AnalyzeToken readAnalyzeToken(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.