Class NodeNameFunctionIterator
java.lang.Object
org.rumbledb.runtime.RuntimeIterator
org.rumbledb.runtime.LocalRuntimeIterator
org.rumbledb.runtime.functions.base.LocalFunctionCallIterator
org.rumbledb.runtime.functions.xml.NodeNameFunctionIterator
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,Serializable
,RuntimeIteratorInterface
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
Rules:
- 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.RuntimeIterator
children, currentDynamicContextForLocalExecution, FLOW_EXCEPTION_MESSAGE, hasNext, isOpen, isSequential, isUpdating, staticContext, staticURI
-
Constructor Summary
ConstructorsConstructorDescriptionNodeNameFunctionIterator
(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, 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
-
NodeNameFunctionIterator
public NodeNameFunctionIterator(List<RuntimeIterator> parameters, RuntimeStaticContext staticContext)
-
-
Method Details
-
open
- Specified by:
open
in interfaceRuntimeIteratorInterface
- Overrides:
open
in classRuntimeIterator
-
next
- Specified by:
next
in interfaceRuntimeIteratorInterface
- Specified by:
next
in classRuntimeIterator
-