Class InScopePrefixesFunctionIterator
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.InScopePrefixesFunctionIterator
- All Implemented Interfaces:
Serializable,LocalRuntimePlan<Item>
Implementation of fn:in-scope-prefixes according to
XPath and XQuery Functions and Operators 3.1, Section 14.1.
Spec (Functions and Operators 3.1, Section 14.1):
"fn:in-scope-prefixes($element as element()) as xs:string*"
"Summary: Returns the prefixes of the in-scope namespaces for $element."
"Rules: The function returns a sequence of zero or more xs:string values."
"For namespace bindings that have a prefix, the prefix is returned."
"For the default namespace, if it exists, the zero-length string is returned."
"The order of the result is implementation dependent."
This function calls namespaceNodes() on the element item, which returns
the in-scope namespace nodes computed via parent chaining of declared
namespaces, and extracts the prefixes as xs:string* items.
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionInScopePrefixesFunctionIterator(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
-
InScopePrefixesFunctionIterator
public InScopePrefixesFunctionIterator(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
-