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
|
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
getPayload()
|
double |
getPayloadAsDouble()
|
long |
getPayloadAsLong()
|
Map |
getPayloadAsMap()
|
String |
getPayloadAsString()
|
protected XContentBuilder |
innerToXContent(XContentBuilder
|
void |
readFrom(StreamInput
|
void |
setPayload(BytesReference
|
void |
setScore(float score)
|
void |
writeTo(StreamOutput
|
collateMatch, equals, getHighlighted, getScore, getText, hashCode, mergeInto, toXContentpublic Option(Texttext, float score, BytesReference payload)
protected Option()
public void setPayload(BytesReferencepayload)
public BytesReferencegetPayload()
public StringgetPayloadAsString()
public long getPayloadAsLong()
public double getPayloadAsDouble()
public void setScore(float score)
protected XContentBuilderinnerToXContent(XContentBuilder builder, ToXContent .Params params) throws IOException
innerToXContent in class
Suggest.Suggestion.Entry.Option
IOException
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
readFrom in class
Suggest.Suggestion.Entry.Option
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
writeTo in class
Suggest.Suggestion.Entry.Option
IOException