public static class Suggest.Suggestion<T extends Suggest.Suggestion.Entry> extends Object implements Iterable<T>, Streamable, ToXContent
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
Suggest.Suggestion.Entry<O extends Suggest.Suggestion.Entry.Option>
Represents a part from the suggest text with suggested options.
|
static class |
Suggest.Suggestion.Sort |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected List<T> |
entries |
protected String |
name |
protected int |
size |
static int |
TYPE |
EMPTY_PARAMS| コンストラクタと説明 |
|---|
Suggestion() |
Suggestion(String name,
int size) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addTerm(T entry) |
List<T> |
getEntries() |
String |
getName() |
int |
getType() |
protected void |
innerReadFrom(StreamInput in) |
void |
innerWriteTo(StreamOutput out) |
Iterator<T> |
iterator() |
protected T |
newEntry() |
void |
readFrom(StreamInput in) |
Suggest.Suggestion<T> |
reduce(List<Suggest.Suggestion<T>> toReduce)
Merges the result of another suggestion into this suggestion.
|
protected Comparator<Suggest.Suggestion.Entry.Option> |
sortComparator() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
trim()
Trims the number of options per suggest text term to the requested size.
|
void |
writeTo(StreamOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final int TYPE
protected String name
protected int size
protected final List<T extends Suggest.Suggestion.Entry> entries
public Suggestion()
public Suggestion(String name, int size)
public void addTerm(T entry)
public int getType()
public Iterator<T> iterator()
iterator インタフェース内 Iterable<T extends Suggest.Suggestion.Entry>public String getName()
public Suggest.Suggestion<T> reduce(List<Suggest.Suggestion<T>> toReduce)
protected Comparator<Suggest.Suggestion.Entry.Option> sortComparator()
public void trim()
public void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionprotected T newEntry()
protected void innerReadFrom(StreamInput in) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic void innerWriteTo(StreamOutput out) throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.