Class NodeNameFunctionIterator
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.NodeNameFunctionIterator
- All Implemented Interfaces:
Serializable,LocalRuntimePlan<Item>
Implementation of the fn:name function according to XQuery 3.1 specification.
Returns the name of a node, as an xs:string that is either the zero-length string,
or has the lexical form of an xs:QName.
Function signatures:
- fn:name() as xs:string
- fn:name($arg as node()?) as xs:string
- 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 zero-length string
- If the node identified by $arg has no name (that is, if it is a document node, a comment, a text node, or a namespace node having no name), the function returns the zero-length string
- Otherwise, the function returns the value of the expression fn:string(fn:node-name($arg))
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionNodeNameFunctionIterator(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
-
NodeNameFunctionIterator
public NodeNameFunctionIterator(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
-