|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.ac.tuwien.infosys.rnue.helpers.search.SearchResultImpl
The SearchResultImpl class represents a search result over all
known peers. It is set up by the information stored in the SearchResponseImpl
objects returned by peers owning the requested
* document. The SearchResultImpl is implemented as a Hashtable. The
owner
is used as key the IFileList
file list as value.
Its constructor creates an empty search result. Use putFileList
method to add a SearchResponseImpl
search responses using the owner (sender of the
search response) as the key to the IFileList
file lists. The search result can then be retrieved using the
owners
and getFileList
methods.
Constructor Summary | |
SearchResultImpl()
Constructs an emtpy SearchResultImpl object. |
Method Summary | |
IFileList |
getFileList(java.lang.String owner)
Returns the IFileList
file list matching the search request at a specific peer. |
java.util.Enumeration |
owners()
Returns an Enumeration of owners. |
void |
putFileList(java.lang.String owner,
IFileList list)
Use the putFileList method to add SearchResponseImpl search responses to the search result. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SearchResultImpl()
Method Detail |
public java.util.Enumeration owners()
Enumeration
of owners. The owner can
the be used to request the IFileList
file list using the getFileList
method.
owners
in interface ISearchResult
Enumeration
of peers having documents in
the file base that match the search requestpublic IFileList getFileList(java.lang.String owner)
IFileList
file list matching the search request at a specific peer.
getFileList
in interface ISearchResult
owner
- java.lang.String HumanReadabelName identifying
the peer owning the file list.
IFileList
list of files matching the search request on the
owner
peer, or null if no file list for
owner
exists.public void putFileList(java.lang.String owner, IFileList list)
SearchResponseImpl
search responses to the search result.
putFileList
in interface ISearchResult
owner
- java.lang.String identifying the peer ownign the file listlist
- IFileList
list of files matching the search request on the
owner
peer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |