|
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.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.FFLWORIterator
public class FFLWORIterator
Nested Class Summary | |
---|---|
class |
FFLWORIterator.CFAdapter
This Adapter is needed to enable break and continue during return-materialization in order by. |
Field Summary |
---|
Fields inherited from interface ch.ethz.mxquery.model.XDMIterator |
---|
EXPR_CATEGORY_SEQUENTIAL, EXPR_CATEGORY_SIMPLE, EXPR_CATEGORY_UPDATING, EXPR_CATEGORY_VACUOUS, EXPR_PARAM_CHEAPEVAL, EXPR_PARAM_VARIABLE, EXPR_PARAM_WINDOW, EXPR_PARAM_XDMGEN |
Constructor Summary | |
---|---|
FFLWORIterator(Context ctx,
XDMIterator[] subIters,
XDMIterator whereExpr,
OrderByIterator orderByExpr,
XDMIterator returnExpr,
QueryLocation location)
|
Method Summary | |
---|---|
XDMIterator |
copy(Context parentIterContext,
XQStaticContext newParentIterContext,
boolean copyContext,
java.util.Vector nestedPredCtxStack)
Copies the Iterator. |
boolean |
doNextBinding()
Starts the binding. |
XDMIterator[] |
getAllSubIters()
|
XDMIterator |
getOrderByExpr()
|
XDMIterator |
getReturnExpr()
|
TypeInfo |
getStaticType()
Return the return type if it can be statically determined |
XDMIterator[] |
getSubIters()
|
XDMIterator |
getWhereExpr()
|
Token |
next()
Produces the next XDM token This method typically implements the base functionality of an Iterator and computes the value of the next token. |
void |
setContext(Context context,
boolean recursive)
Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context |
void |
setOrderByExpr(OrderByIterator oExpr)
|
void |
setResettable(boolean r)
Set this Iterator (and its subiterators) resetable. |
void |
setReturnExpr(XDMIterator retExpr)
|
void |
setWhereExpr(XDMIterator wExpr)
|
KXmlSerializer |
traverseIteratorTree(KXmlSerializer serializer)
|
Methods inherited from class ch.ethz.mxquery.model.Iterator |
---|
addPredicates, close, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setLoc, setOrderByExpr, setParam, setSubIters, setSubIters, setSubIters, traverse |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FFLWORIterator(Context ctx, XDMIterator[] subIters, XDMIterator whereExpr, OrderByIterator orderByExpr, XDMIterator returnExpr, QueryLocation location) throws MXQueryException
MXQueryException
Method Detail |
---|
public void setReturnExpr(XDMIterator retExpr)
setReturnExpr
in class Iterator
public void setWhereExpr(XDMIterator wExpr)
setWhereExpr
in class Iterator
public void setOrderByExpr(OrderByIterator oExpr)
public Token next() throws MXQueryException
XDMIterator
MXQueryException
public boolean doNextBinding() throws MXQueryException
MXQueryException
public void setContext(Context context, boolean recursive) throws MXQueryException
XDMIterator
setContext
in interface XDMIterator
setContext
in class Iterator
context
- the context to assignrecursive
- true perform the assignment also subiteratos, false only replace on the current iterator
MXQueryException
public void setResettable(boolean r) throws MXQueryException
XDMIterator
setResettable
in interface XDMIterator
setResettable
in class Iterator
r
- true make this iterator resetable, false make it not resetable
MXQueryException
public XDMIterator[] getSubIters()
getSubIters
in interface XDMIterator
getSubIters
in class Iterator
public XDMIterator[] getAllSubIters()
getAllSubIters
in interface XDMIterator
getAllSubIters
in class Iterator
public XDMIterator getOrderByExpr()
public XDMIterator getReturnExpr()
public XDMIterator getWhereExpr()
public KXmlSerializer traverseIteratorTree(KXmlSerializer serializer) throws java.lang.Exception
traverseIteratorTree
in interface XDMIterator
traverseIteratorTree
in class Iterator
java.lang.Exception
public XDMIterator copy(Context parentIterContext, XQStaticContext newParentIterContext, boolean copyContext, java.util.Vector nestedPredCtxStack) throws MXQueryException
XDMIterator
copy
in interface XDMIterator
copy
in class Iterator
parentIterContext
- The new parent contextnewParentIterContext
- The previous context of the parent iteratorcopyContext
- Copy the context or use the parent contextnestedPredCtxStack
- The Stack of nested predicate context, needed for nested rewritten predicates
MXQueryException
public TypeInfo getStaticType()
XDMIterator
getStaticType
in interface XDMIterator
getStaticType
in class Iterator
|
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 |