org.apache.lucene.search.suggest.fst
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 Summary |
int |
bucket
source bucket (weight) of the suggestion |
BytesRef |
utf8
UTF-8 bytes of the suggestion |
utf8
public final BytesRef utf8
- UTF-8 bytes of the suggestion
bucket
public final int bucket
- source bucket (weight) of the suggestion
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(FSTCompletion.Completion o)
- Specified by:
compareTo
in interface Comparable<FSTCompletion.Completion>
- See Also:
BytesRef.compareTo(BytesRef)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.