org.gcube.searchsystem.planning.maxsubtree
Class MaxSubtreePlanner

java.lang.Object
  extended by org.gcube.searchsystem.planning.maxsubtree.MaxSubtreePlanner
All Implemented Interfaces:
Planner

public class MaxSubtreePlanner
extends Object
implements Planner


Field Summary
static com.google.common.cache.Cache<CacheElement,ArrayList<AndTree>> cache
           
static String DEFAULTPRIORITY
           
 
Constructor Summary
MaxSubtreePlanner(ArrayList<String> priorities, EnvironmentAdaptor environmentAdaptor)
           
 
Method Summary
 void clearWarnings()
           
static ArrayList<AndTree> getEnhanceAndTreesWithSources(ArrayList<AndTree> subtrees, Vector<search.library.util.cql.query.tree.ModifierSet> proj, String indication, EnvironmentAdaptor environmentAdaptor)
           
 ArrayList<String> getPriorities()
           
 ArrayList<String> getWarnings()
           
static void main(String[] args)
           
 gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan(search.library.util.cql.query.tree.GCQLNode root)
          Receives the root of a CQL tree, creates a plan for the workflow layer, and returns the root of this plan
 void setPriorities(ArrayList<String> priorities)
           
 void setQuery(String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULTPRIORITY

public static final String DEFAULTPRIORITY
See Also:
Constant Field Values

cache

public static com.google.common.cache.Cache<CacheElement,ArrayList<AndTree>> cache
Constructor Detail

MaxSubtreePlanner

public MaxSubtreePlanner(ArrayList<String> priorities,
                         EnvironmentAdaptor environmentAdaptor)
Method Detail

setQuery

public void setQuery(String query)

main

public static void main(String[] args)

getPriorities

public ArrayList<String> getPriorities()

setPriorities

public void setPriorities(ArrayList<String> priorities)

getWarnings

public ArrayList<String> getWarnings()

clearWarnings

public void clearWarnings()

plan

public gr.uoa.di.madgik.workflow.adaptor.search.searchsystemplan.PlanNode plan(search.library.util.cql.query.tree.GCQLNode root)
                                                                        throws CQLTreeSyntaxException,
                                                                               CQLUnsupportedException
Receives the root of a CQL tree, creates a plan for the workflow layer, and returns the root of this plan

Specified by:
plan in interface Planner
Parameters:
root - - the CQL tree root
Returns:
the root of the plan for the workflow layer
Throws:
CQLTreeSyntaxException - - when the input tree is not in a valid state (this case is possible when a chain of proprocessors is applied sequentially, before planning)
CQLUnsupportedException

getEnhanceAndTreesWithSources

public static ArrayList<AndTree> getEnhanceAndTreesWithSources(ArrayList<AndTree> subtrees,
                                                               Vector<search.library.util.cql.query.tree.ModifierSet> proj,
                                                               String indication,
                                                               EnvironmentAdaptor environmentAdaptor)
                                                        throws CQLUnsupportedException
Throws:
CQLUnsupportedException


Copyright © 2013. All Rights Reserved.