|
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.Literal
ch.ethz.mxquery.opt.expr.CompareLiteral
public final class CompareLiteral
Represents a compare literal in a conjunction term
| Field Summary | |
|---|---|
static int |
DEPENDENCY_END_END
|
static int |
DEPENDENCY_END_STARTEND
|
static int |
DEPENDENCY_NO_END
|
static int |
DEPENDENCY_NO_NO
|
static int |
DEPENDENCY_NO_START
|
static int |
DEPENDENCY_NO_STARTEND
|
static int |
DEPENDENCY_START_END
|
static int |
DEPENDENCY_START_START
|
static int |
DEPENDENCY_START_STARTEND
|
static int |
DEPENDENCY_STARTEND_STARTEND
|
| 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 | |
|---|---|
CompareLiteral(XDMIterator iter,
int comparator,
int compareType,
ValueLiteral leftLiteral,
ValueLiteral rightLiteral)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a deep copy! |
int |
compareTo(java.lang.Object o)
Needed to compare literals depending on their dependencies |
boolean |
equals(java.lang.Object obj)
|
int |
getComparator()
Returns the comparator id (based on CompareIterator constants) |
int |
getCompareDependency()
Returns the compare dependency |
static java.lang.String |
getCompareDependencyName(int dep)
|
int |
getCompareType()
Returns the comparator type (value, general, node based on CompareIterator constants) |
ValueLiteral |
getLeftLiteral()
Returns the left part of the comparison (this part has always a lower dependency than the right part |
ValueLiteral |
getRightLiteral()
Returns the left part of the comparison (this part has always a higher dependency than the right part |
int |
hashCode()
|
int |
reset(int level)
Resets the logical unit up to a certain degree on variable dependency |
KXmlSerializer |
traverse(KXmlSerializer serializer)
Just for debugging |
| Methods inherited from class ch.ethz.mxquery.opt.expr.Literal |
|---|
evaluate, getIter |
| Methods inherited from class ch.ethz.mxquery.opt.expr.LogicalUnit |
|---|
addDependency, getDependency, getDependencyName, getDependencyNb, getResult, isDependendOnEnd, isDependendOnStart, isIndexable, isLowerDependency, isLowerOrEqualDependency, setDependency, setIndexable |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEPENDENCY_NO_NO
public static final int DEPENDENCY_NO_START
public static final int DEPENDENCY_NO_STARTEND
public static final int DEPENDENCY_NO_END
public static final int DEPENDENCY_START_START
public static final int DEPENDENCY_START_END
public static final int DEPENDENCY_START_STARTEND
public static final int DEPENDENCY_END_END
public static final int DEPENDENCY_END_STARTEND
public static final int DEPENDENCY_STARTEND_STARTEND
| Constructor Detail |
|---|
public CompareLiteral(XDMIterator iter,
int comparator,
int compareType,
ValueLiteral leftLiteral,
ValueLiteral rightLiteral)
| Method Detail |
|---|
public int getComparator()
public int getCompareType()
public int getCompareDependency()
public ValueLiteral getLeftLiteral()
public ValueLiteral getRightLiteral()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class LogicalUnitpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class Literalpublic KXmlSerializer traverse(KXmlSerializer serializer)
traverse in interface Traversabletraverse in class Literalpublic int reset(int level)
LogicalUnit
reset in class LogicalUnitpublic static java.lang.String getCompareDependencyName(int dep)
|
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 | ||||||||