edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function
Class FunUserDefined
java.lang.Object
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunctionImp
|
+--edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunUserDefined
- public class FunUserDefined
- extends FunctionImp
It is used to represent the user defined functions in the XQuery.
These are not the functions implemented by the classes,
but specified in the input XQuery, e.g., recursive queries.
- Since:
- 1.0
- See Also:
- Serialized Form
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.FunctionImp |
oaParams,
sName |
Method Summary |
void |
eval(Function f)
Recursively execute the user defined function in another execute visitor. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp |
clone,
getColumnsFiltered,
getNode,
getOutput,
getOutputColumnName,
getOutputDataSource,
getOutputDataSources,
getPrimaryDataSource,
getPrimarySource,
setDefaultProperties,
setNode,
setOutput,
setOutputColumnName,
setProperty |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
FunUserDefined
public FunUserDefined(XATNode node)
- Assign a node to this operator .
- Parameters:
node
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNode- Since:
- 1.0
eval
public void eval(Function f)
- Recursively execute the user defined function in another execute visitor.
Functionality:
- create a new execute visitor.
- get the input table of this function F.
- query the parser traverse to get the XAT for this user defined function.
- get all the leave nodes of the XAT.
- update their input XAT table as this input XAT table.
- execute the XAT.
- get the output table from the root of this XAT.
- update the output table of this function f.
- done.
- Parameters:
f
- edu.wpi.cs.dsrg.xmldb.xat.common.operator.specialoperator.function.Function- Since:
- 1.0