Class NilledFunctionIterator
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.NilledFunctionIterator
- All Implemented Interfaces:
Serializable,LocalRuntimePlan<Item>
Implementation of the fn:nilled function according to XPath and XQuery Functions and Operators 3.1
(
https://www.w3.org/TR/xpath-functions-31/#func-nilled) and the XDM 3.1 nilled accessor.
XDM 3.1 Section 5.8 nilled Accessor.
dm:nilled($n as node()) as xs:boolean?
"The dm:nilled accessor returns true if the element node is nilled, false if the element
node is not nilled, or the empty sequence if the concept of nilled does not apply."
In this API, the optional xs:boolean result is represented as a sequence of zero or one Items
returned by Item.nilled().
Function signature (Functions and Operators 3.1, fn:nilled):
- fn:nilled($arg as node()?) as xs:boolean?
- If the argument is supplied and is the empty sequence, the function returns the empty sequence.
- Otherwise, the function returns dm:nilled($arg).
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionNilledFunctionIterator(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
-
NilledFunctionIterator
-
-
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
-