Class NodeQNameFunctionIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.functions.base.LocalFunctionCallIterator
org.rumbledb.runtime.functions.xml.NodeQNameFunctionIterator
- All Implemented Interfaces:
Serializable,LocalRuntimePlan<Item>
Implementation of the fn:node-name function according to XPath and XQuery Functions and Operators 3.1
(
https://www.w3.org/TR/xpath-functions-31/#func-node-name) and the XDM 3.1 node-name accessor.
XDM 3.1 Section 5.10 node-name Accessor.
dm:node-name($n as node()) as xs:QName?
"The dm:node-name accessor returns the name of the node as an xs:QName, or the empty
sequence if the node does not have a name."
Function signatures (Functions and Operators 3.1, fn:node-name):
- fn:node-name() as xs:QName?
- fn:node-name($arg as node()?) as xs:QName?
- "If the argument is omitted, it defaults to the context item."
- "If the argument is supplied and is the empty sequence, the function returns the empty sequence."
- "Otherwise, the function returns the result of applying the dm:node-name accessor to the node identified by the argument. If the dm:node-name accessor returns the empty sequence, then the function returns the empty sequence."
xs:QName result wraps the expanded Name from Item.nodeName() in a
QNameItem; otherwise the function returns the empty sequence.-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionNodeQNameFunctionIterator(List<ItemRuntimePlan> parameters, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateNativeCursor(DynamicContext context) Creates an independent cursor for one native local evaluation.Methods inherited from class org.rumbledb.runtime.plan.ItemRuntimePlan
getChild, getChildren, getStaticType, getVariableDependencies, isSparkJobNeeded, printMethods inherited from class org.rumbledb.runtime.plan.RuntimePlan
getConfiguration, getCursor, getDataFrame, getMetadata, getRDD, getRuntimeStaticContext, materialize, materializeAtMost, materializeAtMostOne, materializeExactlyOne, materializeFirstOrNull
-
Constructor Details
-
NodeQNameFunctionIterator
public NodeQNameFunctionIterator(List<ItemRuntimePlan> parameters, RuntimeStaticContext staticContext)
-
-
Method Details
-
createNativeCursor
Description copied from interface:LocalRuntimePlanCreates an independent cursor for one native local evaluation.- Parameters:
context- the dynamic context for that evaluation- Returns:
- an unopened cursor
-