Package org.rumbledb.runtime.misc
Class RangeOperationIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.misc.RangeOperationIterator
- All Implemented Interfaces:
Serializable,DataFrameRuntimePlan<Item>,LocalRuntimePlan<Item>,NativeQueryRuntimePlan
public class RangeOperationIterator
extends ItemRuntimePlan
implements LocalRuntimePlan<Item>, DataFrameRuntimePlan<Item>, NativeQueryRuntimePlan
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordExact inclusive endpoints; an empty range has first greater than last. -
Field Summary
FieldsFields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionRangeOperationIterator(ItemRuntimePlan leftIterator, ItemRuntimePlan rightiterator, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic HomogeneousItemDataFramecreateInterval(RangeOperationIterator.Bounds bounds, RuntimeStaticContext staticContext) static HomogeneousItemDataFramecreateLongInterval(long left, long right, RuntimeStaticContext staticContext) Creates a dataframe with a sequence of increasing numbers, of type long.createNativeCursor(DynamicContext context) Creates an independent cursor for one native local evaluation.createNativeDataFrame(DynamicContext context) Builds the DataFrame for one evaluation.generateNativeQuery(NativeClauseContext nativeClauseContext) getBounds(DynamicContext context) Evaluates endpoints once, without constructing or scanning the range.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
-
Field Details
-
PARTITION_SIZE
public static final int PARTITION_SIZE- See Also:
-
-
Constructor Details
-
RangeOperationIterator
public RangeOperationIterator(ItemRuntimePlan leftIterator, ItemRuntimePlan rightiterator, RuntimeStaticContext staticContext)
-
-
Method Details
-
createNativeCursor
Description copied from interface:LocalRuntimePlanCreates an independent cursor for one native local evaluation.- Specified by:
createNativeCursorin interfaceLocalRuntimePlan<Item>- Parameters:
context- the dynamic context for that evaluation- Returns:
- an unopened cursor
-
getBounds
Evaluates endpoints once, without constructing or scanning the range. -
createNativeDataFrame
Description copied from interface:DataFrameRuntimePlanBuilds the DataFrame for one evaluation.- Specified by:
createNativeDataFramein interfaceDataFrameRuntimePlan<Item>- Parameters:
context- the dynamic context for that evaluation- Returns:
- the resulting DataFrame
-
createInterval
public static HomogeneousItemDataFrame createInterval(RangeOperationIterator.Bounds bounds, RuntimeStaticContext staticContext) -
createLongInterval
public static HomogeneousItemDataFrame createLongInterval(long left, long right, RuntimeStaticContext staticContext) Creates a dataframe with a sequence of increasing numbers, of type long.- Parameters:
left- the left bound(inclusive).right- the right bound (inclusive).- Returns:
-
generateNativeQuery
- Specified by:
generateNativeQueryin interfaceNativeQueryRuntimePlan
-