Package org.rumbledb.runtime.xml
Class ComputedAttributeConstructorRuntimeIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
org.rumbledb.runtime.xml.ComputedAttributeConstructorRuntimeIterator
- All Implemented Interfaces:
Serializable,AtMostOneLocalRuntimePlan<Item>,LocalRuntimePlan<Item>
Runtime iterator for computed attribute constructors.
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionComputedAttributeConstructorRuntimeIterator(Name staticAttributeName, DataFunctionIterator contentExpression, RuntimeStaticContext staticContext) Constructor for static attribute name: attribute attributeName { value }ComputedAttributeConstructorRuntimeIterator(DataFunctionIterator nameIterator, DataFunctionIterator contentExpression, RuntimeStaticContext staticContext) Constructor for dynamic attribute name: attribute { nameExpression } { value } -
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
-
ComputedAttributeConstructorRuntimeIterator
public ComputedAttributeConstructorRuntimeIterator(Name staticAttributeName, DataFunctionIterator contentExpression, RuntimeStaticContext staticContext) Constructor for static attribute name: attribute attributeName { value }- Parameters:
staticAttributeName- The static attribute name (expanded)contentExpression- The value iteratorstaticContext- The runtime static context
-
ComputedAttributeConstructorRuntimeIterator
public ComputedAttributeConstructorRuntimeIterator(DataFunctionIterator nameIterator, DataFunctionIterator contentExpression, RuntimeStaticContext staticContext) Constructor for dynamic attribute name: attribute { nameExpression } { value }- Parameters:
nameIterator- The dynamic attribute name iterator (wrapped in AtomizationIterator)contentExpression- The value iteratorstaticContext- 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
-