Raccoon.SE
Class SearchEngine
java.lang.Object
Raccoon.SE.SearchEngine
- public class SearchEngine
- extends java.lang.Object
- Author:
- Qi Zhong
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RELATION_PATTERN
public static final int RELATION_PATTERN
- See Also:
- Constant Field Values
SCHEMA_PATTERN
public static final int SCHEMA_PATTERN
- See Also:
- Constant Field Values
INSTANCE_PATTERN
public static final int INSTANCE_PATTERN
- See Also:
- Constant Field Values
SearchEngine
public SearchEngine()
setNetModule
public void setNetModule(NetModuleImpl newNetModule)
setResourceManager
public void setResourceManager(ResourceManager newRM)
setQueryEngine
public void setQueryEngine(QueryEngine newQE)
search
public SearchAnswer search(SearchCriteria criteria)
- caled by GUI to search for similar resources from other peer nodes
- Returns:
- SE.SearchAnswer
search
public SearchAnswer search(java.lang.String relationName,
int searchType)
search
public SearchAnswer search(PVSchema schema,
int searchType)
rmSearch
public SearchAnswer rmSearch(SearchCriteria criteria)
- called by local network module of this node to be reponsible for
the remote search request
- Returns:
- SE.SearchAnswer
attributeMapping
public AttributeMappingAnswer attributeMapping(java.lang.String nodeID,
PVSchema searchSchema,
PVSchema resultSchema)
- method for attribute mapping
retrieve local data and sent it to remote node to do the mapping
rmAttributeMapping
public AttributeMappingAnswer rmAttributeMapping(PVRelation sourceRelation,
PVSchema targetSchema)
- called by remote node and do the local attribute mapping