public static class CompletionSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
Option() |
|
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, toXContent
public Option(Text text, float score, BytesReference payload)
protected 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.Option
protected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent
in class Suggest.Suggestion.Entry.Option
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class Suggest.Suggestion.Entry.Option
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class Suggest.Suggestion.Entry.Option
IOException
Copyright © 2009–2016. All rights reserved.