public class FNPosition extends AbsFunction
IAxis that represents the function fn:position specified in XQuery 1.0 and XPath 2.0 Functions and Operators.
The function returns position of the item in the expression result set.
Constructor and Description |
---|
FNPosition(INodeReadTrx rtx,
List<AbsAxis> args,
int min,
int max,
int returnType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
computeResult()
Computes the result value of the function.
|
evaluate, getArgs, reset, varifyParam
hasNext
addAtomicToItemList, close, getItemList, getNode, getStartKey, isSelfIncluded, iterator, moveTo, next, remove, resetToLastKey, resetToStartKey
public FNPosition(INodeReadTrx rtx, List<AbsAxis> args, int min, int max, int returnType) throws TTXPathException
rtx
- Transaction to operate onargs
- List of function argumentsmin
- min number of allowed function argumentsmax
- max number of allowed function argumentsreturnType
- the type that the function's result will haveTTXPathException
- if function check failsprotected byte[] computeResult()
computeResult
in class AbsFunction
Copyright © 2013. All Rights Reserved.