|
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.ValueLiteral
public final class ValueLiteral
A value literal is a wrapper for any kind of iterator. The result is materialized with Tokens and returned
| 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 | |
|---|---|
ValueLiteral(XDMIterator iter)
|
|
| Method Summary | |
|---|---|
void |
evaluate()
Evaluates and materializes the result |
int |
evaluate(int dependency)
Evaluates the literator up to a specific level. |
void |
evaluateExpectOneValue()
Evaluates but expects only on atomic value |
java.lang.String |
getColumnName()
Returns a name of a childIterator - if the variable depends on one directly; |
Token |
getToken()
Normally used together with evaluateExpectOneValue(). |
Token[] |
getValues()
Returns all tokens from the evaluation. |
int |
reset()
|
int |
reset(int level)
Resets the logical unit up to a certain degree on variable dependency |
void |
setColumnName(java.lang.String name)
|
| Methods inherited from class ch.ethz.mxquery.opt.expr.Literal |
|---|
clone, getIter, 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 ValueLiteral(XDMIterator iter)
| Method Detail |
|---|
public void evaluate()
throws MXQueryException
MXQueryException
public void evaluateExpectOneValue()
throws MXQueryException
MXQueryExceptionpublic int evaluate(int dependency)
Literal
evaluate in class Literaldependency - Up to this dependency level the unit is evaluated
public Token[] getValues()
public Token getToken()
public java.lang.String getColumnName()
public void setColumnName(java.lang.String name)
public int reset(int level)
LogicalUnit
reset in class LogicalUnitpublic int reset()
|
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 | ||||||||