|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.search.suggest.Lookup.LookupResult
public static final class Lookup.LookupResult
Result of a lookup.
| Field Summary | |
|---|---|
CharSequence |
key
the key's text |
BytesRef |
payload
the key's payload (null if not present) |
long |
value
the key's weight |
| Constructor Summary | |
|---|---|
Lookup.LookupResult(CharSequence key,
long value)
Create a new result from a key+weight pair. |
|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload)
Create a new result from a key+weight+payload triple. |
|
| Method Summary | |
|---|---|
int |
compareTo(Lookup.LookupResult o)
Compare alphabetically. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final CharSequence key
public final long value
public final BytesRef payload
| Constructor Detail |
|---|
public Lookup.LookupResult(CharSequence key,
long value)
public Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic int compareTo(Lookup.LookupResult o)
compareTo in interface Comparable<Lookup.LookupResult>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||