uk.ac.ic.doc.automed.p2p.qproc.planner
Interface QPlannerAlgorithm


public interface QPlannerAlgorithm


Method Summary
 void clear()
           
 void constructSchema(java.util.Set keywords, java.util.Map MCons, java.util.Map Ranges)
          Create a query schema from a keyword-based query
 boolean isStop()
          Check whether the algorithm has stopped and result is ready to collect
 java.util.Set[] makeSchemaInstances(Graph schemaGraph, java.util.Set keywords)
          Generates schema instances from a schema graph
 java.util.Set[] plan(ASG q, int length, ReformulationConfiguration config)
          Used by the general version which finds join paths up to a given length
 java.util.Set[] plan(ASG q, ReformulationConfiguration config)
          Used by the basic qplanner algorithm
 

Method Detail

plan

java.util.Set[] plan(ASG q,
                     ReformulationConfiguration config)
                     throws QProcException
Used by the basic qplanner algorithm

Parameters:
q -
config -
Returns:
Throws:
QProcException

plan

java.util.Set[] plan(ASG q,
                     int length,
                     ReformulationConfiguration config)
                     throws QProcException
Used by the general version which finds join paths up to a given length

Parameters:
q -
length -
config -
Returns:
Throws:
QProcException

constructSchema

void constructSchema(java.util.Set keywords,
                     java.util.Map MCons,
                     java.util.Map Ranges)
                     throws QProcException
Create a query schema from a keyword-based query

Parameters:
query - user query
MCons - a hash map [scheme -> Cons] of scheme constraints
Ranges - a hash map [scheme -> range] of scheme ranges
Throws:
QProcException

makeSchemaInstances

java.util.Set[] makeSchemaInstances(Graph schemaGraph,
                                    java.util.Set keywords)
                                    throws QProcException
Generates schema instances from a schema graph

Parameters:
schemaGraph -
query -
Returns:
Set[] an array of two sets: (1)JPSet and (2) set of schema instances
Throws:
QProcException

isStop

boolean isStop()
Check whether the algorithm has stopped and result is ready to collect

Returns:

clear

void clear()