Class InScopePrefixesFunctionIterator
java.lang.Object
org.rumbledb.runtime.RuntimeIterator
org.rumbledb.runtime.LocalRuntimeIterator
org.rumbledb.runtime.functions.base.LocalFunctionCallIterator
org.rumbledb.runtime.functions.xml.InScopePrefixesFunctionIterator
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,Serializable,RuntimeIteratorInterface
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.RuntimeIterator
children, currentDynamicContextForLocalExecution, FLOW_EXCEPTION_MESSAGE, hasNext, isOpen, isSequential, isUpdating, staticContext, staticURI -
Constructor Summary
ConstructorsConstructorDescriptionInScopePrefixesFunctionIterator(List<RuntimeIterator> parameters, RuntimeStaticContext staticContext) -
Method Summary
Methods inherited from class org.rumbledb.runtime.RuntimeIterator
bindToVariableInDynamicContext, canProduceDataFrame, close, deepCopy, generateNativeQuery, getConfiguration, getDataFrame, getEffectiveBooleanValue, getEffectiveBooleanValueOrCheckPosition, getHighestExecutionMode, getMetadata, getOrCreateDataFrame, getPendingUpdateList, getRDD, getRuntimeStaticContext, getStaticType, getVariableDependencies, hasNext, isDataFrame, isLocal, isOpen, isRDD, isRDDOrDataFrame, isSequential, isSparkJobNeeded, isUpdating, materialize, materialize, materializeAtMostOneItemOrDefault, materializeAtMostOneItemOrNull, materializeExactlyOneItem, materializeFirstItemOrNull, materializeNFirstItems, print, printToStandardError, read, reset, setStaticContext, write
-
Constructor Details
-
InScopePrefixesFunctionIterator
public InScopePrefixesFunctionIterator(List<RuntimeIterator> parameters, RuntimeStaticContext staticContext)
-
-
Method Details
-
open
- Specified by:
openin interfaceRuntimeIteratorInterface- Overrides:
openin classRuntimeIterator
-
next
- Specified by:
nextin interfaceRuntimeIteratorInterface- Specified by:
nextin classRuntimeIterator
-