public static class DirectCandidateGenerator.Candidate extends java.lang.Object implements java.lang.Comparable<DirectCandidateGenerator.Candidate>
Modifier and Type | Field and Description |
---|---|
static DirectCandidateGenerator.Candidate[] |
EMPTY |
long |
frequency |
double |
score |
double |
stringDistance |
org.apache.lucene.util.BytesRef |
term |
boolean |
userInput |
Constructor and Description |
---|
Candidate(org.apache.lucene.util.BytesRef term,
long frequency,
double stringDistance,
double score,
boolean userInput) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DirectCandidateGenerator.Candidate other)
Lower scores sort first; if scores are equal, then later (zzz) terms sort first
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public static final DirectCandidateGenerator.Candidate[] EMPTY
public final org.apache.lucene.util.BytesRef term
public final double stringDistance
public final long frequency
public final double score
public final boolean userInput
public Candidate(org.apache.lucene.util.BytesRef term, long frequency, double stringDistance, double score, boolean userInput)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(DirectCandidateGenerator.Candidate other)
compareTo
in interface java.lang.Comparable<DirectCandidateGenerator.Candidate>