|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.result.RetrievalResult
The result of a search modelling the match between a query and a
document collection.
This is the highest level of search result. Each element summarizes
the results for a document. It is sortable but not sorted at
creation.
Field Summary | |
private java.util.Vector |
resultList
Contains the set of results for individual documents (ResultForDocMatchingQuery) which match the query. |
Constructor Summary | |
RetrievalResult(java.util.Vector results)
Creates a RetrievalResult for the supplied results. |
Method Summary | |
ProxyDocument |
getDocNo(int number)
Returns the number-th document in the list. |
ResultForDocMatchingQuery |
getListElementNo(int i)
Returns the i-th element of the list. |
java.util.Vector |
getResultVector()
Returns the whole list of results as a vector. |
int |
getSize()
Returns number of documents in the result |
void |
present(boolean interactive)
Presents the elements of the list of results. |
void |
setResultVector(java.util.Vector c)
Makes the result list equal to the argument. |
void |
sort()
Sorts the result based on criteria for comparing ResultForDocMatchingQuery objects |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector resultList
Constructor Detail |
public RetrievalResult(java.util.Vector results)
results
- contains ResultForDocMatchingQuery elements.Method Detail |
public void sort()
public void present(boolean interactive)
interactive
- The default value FALSE means
that it will not be interactive. Interactive means that the user
will be asked if they want to see more elements.public ProxyDocument getDocNo(int number)
number
- index of desired document.public ResultForDocMatchingQuery getListElementNo(int i)
i
- index of desired document.public int getSize()
public java.util.Vector getResultVector()
public void setResultVector(java.util.Vector c)
c
- The new list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |