public static class CompletionSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
CompletionSuggestion.Entry.Option() |
|
CompletionSuggestion.Entry.Option(Text text,
float score,
BytesReference payload) |
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
getPayload() |
double |
getPayloadAsDouble() |
long |
getPayloadAsLong() |
Map<String,Object> |
getPayloadAsMap() |
String |
getPayloadAsString() |
protected XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
readFrom(StreamInput in) |
void |
setPayload(BytesReference payload) |
void |
setScore(float score) |
void |
writeTo(StreamOutput out) |
collateMatch, equals, getHighlighted, getScore, getText, hashCode, mergeInto, toXContentpublic CompletionSuggestion.Entry.Option(Text text, float score, BytesReference payload)
protected CompletionSuggestion.Entry.Option()
public void setPayload(BytesReference payload)
public BytesReference getPayload()
public String getPayloadAsString()
public long getPayloadAsLong()
public double getPayloadAsDouble()
public void setScore(float score)
setScore in class Suggest.Suggestion.Entry.Optionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent in class Suggest.Suggestion.Entry.OptionIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class Suggest.Suggestion.Entry.OptionIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class Suggest.Suggestion.Entry.OptionIOExceptionCopyright © 2009–2017. All rights reserved.