Package org.rumbledb.runtime.navigation
Class PredicateIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.navigation.PredicateIterator
- All Implemented Interfaces:
Serializable,DataFrameRuntimePlan<Item>,LocalRuntimePlan<Item>,NativeQueryRuntimePlan,RDDRuntimePlan<Item>
public class PredicateIterator
extends ItemRuntimePlan
implements LocalRuntimePlan<Item>, RDDRuntimePlan<Item>, DataFrameRuntimePlan<Item>, NativeQueryRuntimePlan
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionPredicateIterator(ItemRuntimePlan sequence, ItemRuntimePlan filterExpression, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateNativeCursor(DynamicContext context) Creates an independent cursor for one native local evaluation.createNativeDataFrame(DynamicContext context) Builds the DataFrame for one evaluation.org.apache.spark.api.java.JavaRDD<Item>createNativeRDD(DynamicContext dynamicContext) Builds the RDD for one evaluation.generateNativeQuery(NativeClauseContext nativeClauseContext) Methods inherited from class org.rumbledb.runtime.plan.ItemRuntimePlan
getChild, getChildren, getStaticType, isSparkJobNeeded, printMethods inherited from class org.rumbledb.runtime.plan.RuntimePlan
getConfiguration, getCursor, getDataFrame, getMetadata, getRDD, getRuntimeStaticContext, materialize, materializeAtMost, materializeAtMostOne, materializeExactlyOne, materializeFirstOrNull
-
Constructor Details
-
PredicateIterator
public PredicateIterator(ItemRuntimePlan sequence, ItemRuntimePlan filterExpression, 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
-
sequenceIterator
-
predicateIterator
-
createNativeRDD
Description copied from interface:RDDRuntimePlanBuilds the RDD for one evaluation.- Specified by:
createNativeRDDin interfaceRDDRuntimePlan<Item>- Parameters:
dynamicContext- the dynamic context for that evaluation- Returns:
- the resulting RDD
-
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
-
getVariableDependencies
- Overrides:
getVariableDependenciesin classItemRuntimePlan
-
generateNativeQuery
- Specified by:
generateNativeQueryin interfaceNativeQueryRuntimePlan
-