|
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
ch.ethz.mxquery.opt.expr.Term
public abstract class Term
A term for the optimization. A term consits again of logical units, which can be in turn again terms, literal etc.
Field Summary |
---|
Fields inherited from class ch.ethz.mxquery.opt.expr.LogicalUnit |
---|
DEPENDENCY_END, DEPENDENCY_NO, DEPENDENCY_START, DEPENDENCY_STARTEND, INDEX_IMPOSSIBLE, INDEX_POSSIBLE, INDEX_RECOMMEND, RESET, RESULT_FALSE, RESULT_TRUE, RESULT_UNKNOWN |
Constructor Summary | |
---|---|
Term()
|
Method Summary | |
---|---|
void |
add(LogicalUnit unit)
Adds a new logical unit to the term |
void |
addAll(Term term)
Adds a list of terms into this term. |
java.lang.Object |
clone()
Creates a copy. |
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 |
LogicalUnit |
get(int i)
|
abstract int |
reset(int level)
Resets the logical unit up to a certain degree on variable dependency |
int |
size()
Returns the number of logical units in this term |
void |
sort()
Sorts the result list according to the used variables |
KXmlSerializer |
traverse(KXmlSerializer serializer)
|
Methods inherited from class ch.ethz.mxquery.opt.expr.LogicalUnit |
---|
addDependency, compareTo, getDependency, getDependencyName, getDependencyNb, getResult, isDependendOnEnd, isDependendOnStart, isIndexable, isLowerDependency, isLowerOrEqualDependency, setDependency, setIndexable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Term()
Method Detail |
---|
public LogicalUnit get(int i)
public void addAll(Term term)
term
- public int size()
public void add(LogicalUnit unit)
unit
- public void sort()
public abstract int evaluate(int level) throws MXQueryException
LogicalUnit
evaluate
in class LogicalUnit
level
- Up to this dependency level the unit is evaluated
MXQueryException
public abstract int reset(int level)
LogicalUnit
reset
in class LogicalUnit
public java.lang.Object clone()
public KXmlSerializer traverse(KXmlSerializer serializer)
traverse
in interface Traversable
traverse
in class LogicalUnit
|
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 |