Class DocumentScoreInfo<T>
- java.lang.Object
-
- it.unimi.di.big.mg4j.search.score.DocumentScoreInfo<T>
-
public final class DocumentScoreInfo<T> extends Object
A container used to return scored results with additional information.
-
-
Field Summary
Fields Modifier and Type Field Description long
document
The index of the document.static Comparator<DocumentScoreInfo<?>>
DOCUMENT_COMPARATOR
A comparator that sortsDocumentScoreInfo
instances by increasing document number.T
info
Optional additional information.double
score
Its score.static Comparator<DocumentScoreInfo<?>>
SCORE_DOCUMENT_COMPARATOR
A comparator that sortsDocumentScoreInfo
instances by increasing score order and then by decreasing document order.
-
Constructor Summary
Constructors Constructor Description DocumentScoreInfo(long document)
DocumentScoreInfo(long document, double score)
DocumentScoreInfo(long document, double score, T info)
-
-
-
Field Detail
-
document
public long document
The index of the document.
-
score
public double score
Its score.
-
info
public T info
Optional additional information.
-
DOCUMENT_COMPARATOR
public static final Comparator<DocumentScoreInfo<?>> DOCUMENT_COMPARATOR
A comparator that sortsDocumentScoreInfo
instances by increasing document number.
-
SCORE_DOCUMENT_COMPARATOR
public static final Comparator<DocumentScoreInfo<?>> SCORE_DOCUMENT_COMPARATOR
A comparator that sortsDocumentScoreInfo
instances by increasing score order and then by decreasing document order.
-
-
Constructor Detail
-
DocumentScoreInfo
public DocumentScoreInfo(long document, double score, T info)
-
DocumentScoreInfo
public DocumentScoreInfo(long document, double score)
-
DocumentScoreInfo
public DocumentScoreInfo(long document)
-
-