|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.iql.IQLUtility
public class IQLUtility
Provides a number of static methods that simplify IQL expressions.
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
IQLUtility()
|
|
| Method Summary | |
|---|---|
static float |
getCompDistributionMetric(Cell root)
|
static Cell |
getDefaultQuery(int rangeSemantics)
|
static java.util.Collection |
getSchemes(Cell root,
java.util.Collection col)
|
static boolean |
processFlatmapRange(Cell c)
Performs in a top-down manner the following simplification: |
static boolean |
processRangeArgs(Cell c)
|
static boolean |
processRangeInGen(Cell c)
Performs in a top-down manner the following simplification: |
static boolean |
processRangeRange(Cell c)
Performs in a bottom-up manner the following simplifications: |
static boolean |
simplifyBasedOnEquijoins(Cell root)
Traverses query and replaces certain comprehensions with []. |
static boolean |
simplifyBasedOnQualifiers(Cell c)
Performs in a bottom-up manner the following simplifications: |
static void |
simplifyRange(Cell c)
|
static boolean |
simplifyUnionIntersect(Cell c)
Simplifies the input query so that union Void Void returns Void and intersect Any Any returns Any |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static java.util.logging.Logger logger
| Constructor Detail |
|---|
public IQLUtility()
| Method Detail |
|---|
public static void simplifyRange(Cell c)
public static boolean processRangeArgs(Cell c)
public static boolean processRangeRange(Cell c)
Performs in a bottom-up manner the following simplifications:
c - the root of the expression to be simplified
public static boolean processFlatmapRange(Cell c)
Performs in a top-down manner the following simplification:
c - the root of the expression to be simplified
public static boolean processRangeInGen(Cell c)
Performs in a top-down manner the following simplification:
c - the root of the expression to be simplified
public static boolean simplifyBasedOnQualifiers(Cell c)
Performs in a bottom-up manner the following simplifications:
c - the root of the expression to be simplified
public static boolean simplifyBasedOnEquijoins(Cell root)
throws IQLException
root - root of the comprehension
IQLExceptionpublic static float getCompDistributionMetric(Cell root)
root - the root of an IQL query
uk.ac.bbk.dcs.automed.qproc.optimise.ComprehensionDistributor would create - does NOT consider filters
containing comprehensions (returns -1 if IQL query has no generators in the first place)
public static java.util.Collection getSchemes(Cell root,
java.util.Collection col)
public static boolean simplifyUnionIntersect(Cell c)
c - the root of the input querypublic static Cell getDefaultQuery(int rangeSemantics)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||