Package org.rumbledb.runtime.xml
Class ComputedNamespaceConstructorRuntimeIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
org.rumbledb.runtime.xml.ComputedNamespaceConstructorRuntimeIterator
- All Implemented Interfaces:
Serializable,AtMostOneLocalRuntimePlan<Item>,LocalRuntimePlan<Item>
Runtime iterator for computed namespace constructors.
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionComputedNamespaceConstructorRuntimeIterator(String staticPrefix, DataFunctionIterator uriIterator, RuntimeStaticContext staticContext) Constructor for static prefix: namespace prefix { uri }ComputedNamespaceConstructorRuntimeIterator(DataFunctionIterator prefixIterator, DataFunctionIterator uriIterator, RuntimeStaticContext staticContext) Constructor for dynamic prefix: namespace { prefixExpression } { uri } -
Method Summary
Modifier and TypeMethodDescriptionevaluateAtMostOne(DynamicContext dynamicContext) Evaluates the plan without allocating a cursor.Methods inherited from class org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
createNativeCursorMethods 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
-
ComputedNamespaceConstructorRuntimeIterator
public ComputedNamespaceConstructorRuntimeIterator(String staticPrefix, DataFunctionIterator uriIterator, RuntimeStaticContext staticContext) Constructor for static prefix: namespace prefix { uri }- Parameters:
staticPrefix- The static namespace prefixuriIterator- The URI iterator (wrapped in AtomizationIterator)staticContext- The runtime static context
-
ComputedNamespaceConstructorRuntimeIterator
public ComputedNamespaceConstructorRuntimeIterator(DataFunctionIterator prefixIterator, DataFunctionIterator uriIterator, RuntimeStaticContext staticContext) Constructor for dynamic prefix: namespace { prefixExpression } { uri }- Parameters:
prefixIterator- The prefix iterator (wrapped in AtomizationIterator)uriIterator- The URI iterator (wrapped in AtomizationIterator)staticContext- The runtime static context
-
-
Method Details
-
evaluateAtMostOne
Description copied from interface:AtMostOneLocalRuntimePlanEvaluates the plan without allocating a cursor.- Specified by:
evaluateAtMostOnein interfaceAtMostOneLocalRuntimePlan<Item>- Specified by:
evaluateAtMostOnein classAbstractAtMostOneItemRuntimePlan- Parameters:
dynamicContext- the dynamic context for the evaluation- Returns:
- the value, or
nullfor the empty sequence
-