|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputIterator
Interface for enumerating term,weight,payload triples for suggester consumption;
currently only AnalyzingSuggester
, FuzzySuggester
and AnalyzingInfixSuggester
support payloads.
Nested Class Summary | |
---|---|
static class |
InputIterator.InputIteratorWrapper
Wraps a BytesRefIterator as a suggester InputIterator, with all weights set to 1 and carries no payload |
Field Summary | |
---|---|
static InputIterator |
EMPTY
Singleton InputIterator that iterates over 0 BytesRefs. |
Method Summary | |
---|---|
boolean |
hasPayloads()
Returns true if the iterator has payloads |
BytesRef |
payload()
An arbitrary byte[] to record per suggestion. |
long |
weight()
A term's weight, higher numbers mean better suggestions. |
Methods inherited from interface org.apache.lucene.util.BytesRefIterator |
---|
getComparator, next |
Field Detail |
---|
static final InputIterator EMPTY
Method Detail |
---|
long weight()
BytesRef payload()
Lookup.LookupResult.payload
to retrieve the payload
for each suggestion.
boolean hasPayloads()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |