Package org.rumbledb.runtime.primary
Class ArrayRuntimeIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
org.rumbledb.runtime.primary.ArrayRuntimeIterator
- All Implemented Interfaces:
Serializable,AtMostOneLocalRuntimePlan<Item>,LocalRuntimePlan<Item>,NativeQueryRuntimePlan
public class ArrayRuntimeIterator
extends AbstractAtMostOneItemRuntimePlan
implements NativeQueryRuntimePlan
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionArrayRuntimeIterator(List<? extends ItemRuntimePlan> memberIterators, boolean isFixedSlotsArrayConstructor, RuntimeStaticContext staticContext, boolean mutable) Square array constructor: each child iterator produces one member (possibly a sequence).ArrayRuntimeIterator(ItemRuntimePlan arrayItems, RuntimeStaticContext staticContext, boolean mutable) Curly array constructor: single child whose items become singleton members. -
Method Summary
Modifier and TypeMethodDescriptionevaluateAtMostOne(DynamicContext dynamicContext) Evaluates the plan without allocating a cursor.generateNativeQuery(NativeClauseContext nativeClauseContext) 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
-
ArrayRuntimeIterator
public ArrayRuntimeIterator(ItemRuntimePlan arrayItems, RuntimeStaticContext staticContext, boolean mutable) Curly array constructor: single child whose items become singleton members. -
ArrayRuntimeIterator
public ArrayRuntimeIterator(List<? extends ItemRuntimePlan> memberIterators, boolean isFixedSlotsArrayConstructor, RuntimeStaticContext staticContext, boolean mutable) Square array constructor: each child iterator produces one member (possibly a sequence).
-
-
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
-
generateNativeQuery
- Specified by:
generateNativeQueryin interfaceNativeQueryRuntimePlan
-