Package org.apache.lucene.search.suggest
Interface InputIterator
- All Superinterfaces:
BytesRefIterator
- All Known Implementing Classes:
BufferedInputIterator,InputIterator.InputIteratorWrapper,SortedInputIterator,UnsortedInputIterator
Interface for enumerating term,weight,payload triples for suggester consumption;
currently only
AnalyzingSuggester, FuzzySuggester and AnalyzingInfixSuggester support payloads.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classWraps a BytesRefIterator as a suggester InputIterator, with all weights set to1and carries no payload -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InputIteratorSingleton InputIterator that iterates over 0 BytesRefs. -
Method Summary
Methods inherited from interface org.apache.lucene.util.BytesRefIterator
getComparator, next
-
Field Details
-
EMPTY
Singleton InputIterator that iterates over 0 BytesRefs.
-
-
Method Details
-
weight
long weight()A term's weight, higher numbers mean better suggestions. -
payload
BytesRef payload()An arbitrary byte[] to record per suggestion. SeeLookup.LookupResult.payloadto retrieve the payload for each suggestion. -
hasPayloads
boolean hasPayloads()Returns true if the iterator has payloads
-