public static class CompletionSuggestion.Entry.Option extends Suggest.Suggestion.Entry.Option
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
Option() |
|
Option(Text text,
float score,
BytesReference payload) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 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 クラス内 Suggest.Suggestion.Entry.Optionprotected XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
innerToXContent クラス内 Suggest.Suggestion.Entry.OptionIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamablereadFrom クラス内 Suggest.Suggestion.Entry.OptionIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamablewriteTo クラス内 Suggest.Suggestion.Entry.OptionIOExceptionCopyright © 2009–2016. All rights reserved.