|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.result.ResultForDocMatchingQuery
The result of a search modelling the match between a document and a
query - at the level of a single document and all the information
needed to calculate the RSV for the document.
Field Summary | |
private ProxyDocument |
doc
The document for which this result comprises the evidence |
private java.util.Vector |
partialResults
The lower-level results - these are per-field/index. |
private QueryRep |
query
The query associated with this result |
private double |
RSV
The retrieval status value for this result |
Constructor Summary | |
ResultForDocMatchingQuery()
Creates an empty ResultForDocMatchingQuery |
|
ResultForDocMatchingQuery(QueryRep q,
ProxyDocument d,
java.util.Vector results)
Creates a ResultForDocMatchingQuery for the supplied query, doc and results. |
Method Summary | |
void |
addPartialResult(ResultForDocMatchingQueryModalityUnit aPR)
Adds ResultForDocMatchingQueryModalityUnit to the partialResults. |
double |
calcRSV(QueryRep aQueryRep)
Calculates the final Retrieval Status Value for a document by combining the scores obtained for each term in the query across all indexes. |
int |
compare(java.lang.Object o2)
Compares two results in terms of Retrival Status Value |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two results in terms of Retrival Status Value NOTE: This compare reverses the standard sort sequence so that index 1 of the list contains the highest RSV |
ProxyDocument |
getDocument()
Returns the document this result refers to. |
java.util.Vector |
getIndexingFeatures()
Gets results for these indexing features |
java.util.Vector |
getPartialResults()
Returns the partialResults this result is a part of. |
QueryRep |
getQuery()
Returns the query |
double |
getRSV()
Gets the Retrieval Status Value (RSV). |
void |
present()
Displays information about this result |
Methods inherited from class java.lang.Object |
|
Field Detail |
private QueryRep query
private double RSV
private ProxyDocument doc
private java.util.Vector partialResults
Constructor Detail |
public ResultForDocMatchingQuery()
public ResultForDocMatchingQuery(QueryRep q, ProxyDocument d, java.util.Vector results)
q
- A query.d
- An Documentresults
- Partial results (Vector of ResultForDocMatchingQueryModalityUnits)Method Detail |
public ProxyDocument getDocument()
public java.util.Vector getPartialResults()
public double getRSV()
public double calcRSV(QueryRep aQueryRep)
public void addPartialResult(ResultForDocMatchingQueryModalityUnit aPR)
aPR
- Result for doc matching query modality unit.public int compare(java.lang.Object o2)
o2
- another result of this typepublic int compare(java.lang.Object o1, java.lang.Object o2)
o1
- a result of this typeo2
- another result of this typepublic java.util.Vector getIndexingFeatures()
public QueryRep getQuery()
public void present()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |