|
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.CTerm
public final class CTerm
This term presents a conjunction term. It also implements the logic for conjunctions to allow short circuit
Field Summary | |
---|---|
boolean |
indexed
|
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 | |
---|---|
CTerm()
|
Method Summary | |
---|---|
void |
addLiteral(Literal literal)
Adds a new literal to the conjunction term |
int |
evaluate(int level)
Evaluates the conjunction term up to a certain dependency level. |
CompareLiteralIndexSchema |
getIndexSchema(int indexNb)
|
Literal |
getLiteral(int i)
Returns the literal from position i from this conjunction term |
boolean |
isCompleteIndexable()
Checks if the CTerm is complete indexable |
boolean |
isIndexed()
Returns if this conjunction term is indexed |
int |
reset(int level)
Resets the logical unit up to a certain degree on variable dependency |
void |
setIndexed(boolean indexed)
Sets if this conjunction term is indexed |
Methods inherited from class ch.ethz.mxquery.opt.expr.Term |
---|
add, addAll, clone, get, size, sort, 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 |
Field Detail |
---|
public boolean indexed
Constructor Detail |
---|
public CTerm()
Method Detail |
---|
public boolean isIndexed()
public void setIndexed(boolean indexed)
public void addLiteral(Literal literal)
literal
- public Literal getLiteral(int i)
i
- position of the literalpublic int evaluate(int level) throws MXQueryException
evaluate
in class Term
level
- Up to this dependency level the unit is evaluated
MXQueryException
public int reset(int level)
LogicalUnit
reset
in class Term
public CompareLiteralIndexSchema getIndexSchema(int indexNb)
public boolean isCompleteIndexable()
|
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 |