org.gcube.searchsystem.planning.maxsubtree
Class MaxSubtreePlanner
java.lang.Object
org.gcube.searchsystem.planning.maxsubtree.MaxSubtreePlanner
- All Implemented Interfaces:
- Planner
public class MaxSubtreePlanner
- extends Object
- implements Planner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULTPRIORITY
public static final String DEFAULTPRIORITY
- See Also:
- Constant Field Values
cache
public static com.google.common.cache.Cache<CacheElement,ArrayList<AndTree>> cache
MaxSubtreePlanner
public MaxSubtreePlanner(ArrayList<String> priorities,
EnvironmentAdaptor environmentAdaptor)
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.