public class CompletionSuggestion extends Suggest.Suggestion<CompletionSuggestion.Entry>
| Modifier and Type | Class and Description |
|---|---|
static class |
CompletionSuggestion.Entry |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE |
entries, name, sizeEMPTY_PARAMS| Constructor and Description |
|---|
CompletionSuggestion() |
CompletionSuggestion(java.lang.String name,
int size) |
| Modifier and Type | Method and Description |
|---|---|
int |
getWriteableType()
Returns a integer representing the type of the suggestion.
|
protected CompletionSuggestion.Entry |
newEntry() |
addTerm, fromXContent, getEntries, getName, getSize, getType, innerReadFrom, innerWriteTo, iterator, parseEntries, readFrom, reduce, sortComparator, toXContent, trim, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final int TYPE
public CompletionSuggestion()
public CompletionSuggestion(java.lang.String name,
int size)
public int getWriteableType()
Suggest.SuggestiongetWriteableType in class Suggest.Suggestion<CompletionSuggestion.Entry>protected CompletionSuggestion.Entry newEntry()
newEntry in class Suggest.Suggestion<CompletionSuggestion.Entry>