Class RandomNumberGeneratorPermuteBodyIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.functions.random.RandomNumberGeneratorPermuteBodyIterator
- All Implemented Interfaces:
Serializable,LocalRuntimePlan<Item>
public class RandomNumberGeneratorPermuteBodyIterator
extends ItemRuntimePlan
implements LocalRuntimePlan<Item>
Body of the "permute" entry of a random-number-generator map: a seed-deterministic Fisher-Yates shuffle
of the bound "arg" parameter.
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionRandomNumberGeneratorPermuteBodyIterator(long seed, 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
-
RandomNumberGeneratorPermuteBodyIterator
-
-
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
-