|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.di.mg4j.search.score.DocumentScoreInfo<T>
public final class DocumentScoreInfo<T>
A container used to return scored results with additional information.
| Field Summary | |
|---|---|
int |
document
The index of the document. |
static Comparator<DocumentScoreInfo<?>> |
DOCUMENT_COMPARATOR
A comparator that sorts DocumentScoreInfo instances by increasing document number. |
T |
info
Optional additional information. |
double |
score
Its score. |
static Comparator<DocumentScoreInfo<?>> |
SCORE_DOCUMENT_COMPARATOR
A comparator that sorts DocumentScoreInfo instances by increasing score order and then by decreasing document order. |
| Constructor Summary | |
|---|---|
DocumentScoreInfo(int document)
|
|
DocumentScoreInfo(int document,
double score)
|
|
DocumentScoreInfo(int document,
double score,
T info)
|
|
| Method Summary | |
|---|---|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int document
public double score
public T info
public static final Comparator<DocumentScoreInfo<?>> DOCUMENT_COMPARATOR
DocumentScoreInfo instances by increasing document number.
public static final Comparator<DocumentScoreInfo<?>> SCORE_DOCUMENT_COMPARATOR
DocumentScoreInfo instances by increasing score order and then by decreasing document order.
| Constructor Detail |
|---|
public DocumentScoreInfo(int document,
double score,
T info)
public DocumentScoreInfo(int document,
double score)
public DocumentScoreInfo(int document)
| Method Detail |
|---|
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||