|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.opt.expr.LogicalUnit
public abstract class LogicalUnit
Every term and literal inherits from logical unit. This calls introduces some helper methods
Field Summary | |
---|---|
static int |
DEPENDENCY_END
|
static int |
DEPENDENCY_NO
|
static int |
DEPENDENCY_START
|
static int |
DEPENDENCY_STARTEND
|
static int |
INDEX_IMPOSSIBLE
|
static int |
INDEX_POSSIBLE
|
static int |
INDEX_RECOMMEND
|
static int |
RESET
|
static int |
RESULT_FALSE
|
static int |
RESULT_TRUE
|
static int |
RESULT_UNKNOWN
|
Constructor Summary | |
---|---|
LogicalUnit()
|
Method Summary | |
---|---|
void |
addDependency(int dep)
Adds a new dependency to the logical unit |
int |
compareTo(java.lang.Object o)
Compares to logical units according to their dependencies |
abstract int |
evaluate(int level)
Evaluates the logical unit until a certain degree on variable dependency and returns if the result is false, true or unknown |
int |
getDependency()
|
static java.lang.String |
getDependencyName(int dependency)
|
static int |
getDependencyNb(boolean start,
boolean end)
Returns for the combination of start and end variable the corresponding constant |
int |
getResult()
Returns if the result if the result if false, ture or unknown |
static boolean |
isDependendOnEnd(int dependency)
Test if it depends on the end variables |
static boolean |
isDependendOnStart(int dependency)
Test if it depends on the start variables |
boolean |
isIndexable()
Returns if for this logical unit a index is recommended. |
boolean |
isLowerDependency(int dep1,
int dep2)
Compares two dependecies. |
boolean |
isLowerOrEqualDependency(int dep1,
int dep2)
Compares to dependencies to each other |
int |
reset(int level)
Resets the logical unit up to a certain degree on variable dependency |
void |
setDependency(int dep)
|
void |
setIndexable(int value)
Sets if a logical unit is indexable. |
KXmlSerializer |
traverse(KXmlSerializer serializer)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RESET
public static final int DEPENDENCY_NO
public static final int DEPENDENCY_START
public static final int DEPENDENCY_END
public static final int DEPENDENCY_STARTEND
public static final int RESULT_FALSE
public static final int RESULT_UNKNOWN
public static final int RESULT_TRUE
public static final int INDEX_POSSIBLE
public static final int INDEX_RECOMMEND
public static final int INDEX_IMPOSSIBLE
Constructor Detail |
---|
public LogicalUnit()
Method Detail |
---|
public int getDependency()
public void setDependency(int dep)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
-
public int reset(int level)
level
-
public abstract int evaluate(int level) throws MXQueryException
level
- Up to this dependency level the unit is evaluated
MXQueryException
public boolean isLowerOrEqualDependency(int dep1, int dep2)
dep1
- dep2
-
public boolean isIndexable()
public void setIndexable(int value)
value
- public boolean isLowerDependency(int dep1, int dep2)
dep1
- dep2
-
public void addDependency(int dep)
dep
- public static boolean isDependendOnStart(int dependency)
dependency
-
public static boolean isDependendOnEnd(int dependency)
dependency
-
public static java.lang.String getDependencyName(int dependency)
public static int getDependencyNb(boolean start, boolean end)
start
- Depends on the start variableend
- Depends on the end variable
public int getResult()
public KXmlSerializer traverse(KXmlSerializer serializer)
traverse
in interface Traversable
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |