Module org.apache.lucene.suggest
Class FSTCompletion.Completion
java.lang.Object
org.apache.lucene.search.suggest.fst.FSTCompletion.Completion
- All Implemented Interfaces:
Comparable<FSTCompletion.Completion>
- Enclosing class:
FSTCompletion
public static final class FSTCompletion.Completion
extends Object
implements Comparable<FSTCompletion.Completion>
A single completion for a given key.
-
Field Details
-
utf8
UTF-8 bytes of the suggestion -
bucket
public final int bucketsource bucket (weight) of the suggestion
-
-
Constructor Details
-
Completion
Completion(BytesRef key, int bucket)
-
-
Method Details
-
toString
-
compareTo
Completions are equal when theirutf8
images are equal (bucket is not compared).- Specified by:
compareTo
in interfaceComparable<FSTCompletion.Completion>
-