|
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
ch.ethz.mxquery.opt.expr.DTerm
public final class DTerm
Represents a disjunction term, with consists of conjunction terms - needed for the max indexes
| 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 | |
|---|---|
DTerm()
|
|
| Method Summary | |
|---|---|
void |
addAll(DTerm dList)
Combines two disjunctin terms to one |
void |
addCTerm(CTerm cList)
Adds a new conjunction term |
DTerm |
combineLists(DTerm l2)
Merges two dList in the form that every element from one list is combined with every element in the second list. |
int |
evaluate(int level)
Checks the condition and also removes false literals |
CTerm |
getCTerm(int i)
Returns the conjunction term at position i |
int |
reset(int level)
Resets the evaluation of the conjunction term up to a certain level of dependency |
void |
sort()
Sortts the conjunctions terms according to the dependencies |
| Methods inherited from class ch.ethz.mxquery.opt.expr.Term |
|---|
add, addAll, clone, get, size, traverse |
| 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 DTerm()
| Method Detail |
|---|
public void addCTerm(CTerm cList)
cList - public void addAll(DTerm dList)
dList - public CTerm getCTerm(int i)
i -
public void sort()
sort in class Termpublic DTerm combineLists(DTerm l2)
l2 -
public int evaluate(int level)
throws MXQueryException
evaluate in class Termlevel - Up to this dependency level the unit is evaluated
MXQueryExceptionpublic int reset(int level)
reset in class Term
|
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 | ||||||||