|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.p2p.gui.graph.commands.GCommand
uk.ac.ic.doc.automed.p2p.qproc.commands.TopKMappingCommand
public class TopKMappingCommand
Field Summary | |
---|---|
private java.text.NumberFormat |
fmt
|
private static int |
section
|
Fields inherited from class uk.ac.ic.doc.automed.p2p.gui.graph.commands.GCommand |
---|
CMD_EDIT_LABEL, CMD_SHOW_PROPERTIES, cmdID, EVENT_ON_CLICK, EVENT_ON_DOUBLE_CLICK, EVENT_ON_MOUSE_OVER, gviz, label, mode, MODE_ADVANCED, MODE_ALL, MODE_AUTORUN, MODE_DEFAULT, MODE_NOSHOW, MODE_PUBLISHER, MODE_USER |
Constructor Summary | |
---|---|
TopKMappingCommand(GraphViz gviz)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Perform action. |
private java.util.Map |
calcFetchVector(int k,
QueryPlannerResult qpresult,
QueryPlannerResult.CoverageSet cset)
Calculate the fetch vector for each coverage set |
private void |
calcGlobalRank(QueryPlannerResult.CoverageSet cset)
Calculate the global rank of each coverage set. |
private java.util.Map |
fetchMappings(java.util.Map fetchVectorMap,
QueryPlannerResult qpresult)
Get mapping sub-sets from peers and update the local fetch size of the coverage set |
private java.util.Collection |
generateCoverageSets(QueryPlannerResult qpresult)
|
private java.util.Collection |
getCoverageSetStats(QueryPlannerResult qpresult)
This is invoked to obtain and merge statistics about the coverage sets It returns a collection of coverage set objects. |
private java.util.Collection |
getTopRanked(int k,
java.util.Collection csets)
Return a sub-set containing coverage sets whose ranks equal the top rank |
private void |
mergeCoverageSets(java.util.Collection csets,
java.util.Collection edges,
java.util.Collection asetcol)
|
private void |
rankTopKDistributed(int k,
QueryPlannerResult qpresult)
Generate and rank top-k queries. This method assumes that no mappings are known initially at the query peer. |
private void |
showMessage(java.lang.String msg)
|
private void |
showMessage(java.lang.String msg,
java.lang.Exception e)
|
private void |
showStatus(QueryPlannerResult qpresult)
Show the status of the query planner result. |
Methods inherited from class uk.ac.ic.doc.automed.p2p.gui.graph.commands.GCommand |
---|
copyProperties, eventPerformed, getID, getLabel, getMenuDef, getMode, getOutput, getPeerName, init, isAutoCommand, setOutput, updateMenu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int section
private java.text.NumberFormat fmt
Constructor Detail |
---|
public TopKMappingCommand(GraphViz gviz)
Method Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent evt)
private void rankTopKDistributed(int k, QueryPlannerResult qpresult)
qpresult
- private java.util.Collection getCoverageSetStats(QueryPlannerResult qpresult)
qpresult
- .private java.util.Collection generateCoverageSets(QueryPlannerResult qpresult)
private void mergeCoverageSets(java.util.Collection csets, java.util.Collection edges, java.util.Collection asetcol)
private void calcGlobalRank(QueryPlannerResult.CoverageSet cset)
cset
- private java.util.Collection getTopRanked(int k, java.util.Collection csets)
csets
-
private java.util.Map calcFetchVector(int k, QueryPlannerResult qpresult, QueryPlannerResult.CoverageSet cset)
cset
- private java.util.Map fetchMappings(java.util.Map fetchVectorMap, QueryPlannerResult qpresult)
fetchVectorMap
- a hash map: kedge ->
Listprivate void showStatus(QueryPlannerResult qpresult)
qpresult
- private void showMessage(java.lang.String msg)
private void showMessage(java.lang.String msg, java.lang.Exception e)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |