uk.ac.bbk.dcs.automed.qproc.optimise.optimisers
Class ComprehensionDistributor

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.optimise.optimisers.ComprehensionDistributor

public class ComprehensionDistributor
extends java.lang.Object

This optimiser is used to decompose a comprehension whose generators contain append expressions, such as [x|x<-(E1++E2)]. For above example, the result is "[x|x<-E1]++[x|x<-E2]".

Author:
Hao Fan, Lucas Zamboulis

Field Summary
protected  java.util.logging.Logger logger
           
 
Constructor Summary
ComprehensionDistributor(boolean disjointIDs)
           
 
Method Summary
 boolean optimise(ASG g)
           
 boolean optimise(Cell c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected java.util.logging.Logger logger
Constructor Detail

ComprehensionDistributor

public ComprehensionDistributor(boolean disjointIDs)
Method Detail

optimise

public boolean optimise(Cell c)
                 throws QueryOptimisationException
Throws:
QueryOptimisationException

optimise

public boolean optimise(ASG g)