Package org.rumbledb.runtime.typing
Class JSONiqValidateIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.typing.JSONiqValidateIterator
- All Implemented Interfaces:
Serializable,DataFrameRuntimePlan<Item>,LocalRuntimePlan<Item>,NativeQueryRuntimePlan,RDDRuntimePlan<Item>
public class JSONiqValidateIterator
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
ConstructorsConstructorDescriptionJSONiqValidateIterator(ItemRuntimePlan instance, ItemType itemType, boolean isValidate, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic HomogeneousItemDataFrameconvertLocalItemsToDataFrame(List<Item> items, ItemType itemType, DynamicContext context, boolean isValidate, RuntimeStaticContext staticContext) static HomogeneousItemDataFramestatic HomogeneousItemDataFrameconvertRDDToValidDataFrame(org.apache.spark.api.java.JavaRDD<Item> itemRDD, ItemType itemType, DynamicContext context, boolean isValidate, RuntimeStaticContext staticContext) static HomogeneousItemDataFrameconvertRDDToVariantDataFrame(org.apache.spark.api.java.JavaRDD<Item> itemRDD) static org.apache.spark.sql.types.StructTypeconvertToDataFrameSchema(ItemType itemType, RuntimeStaticContext staticContext) createNativeCursor(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 context) Builds the RDD for one evaluation.generateNativeQuery(NativeClauseContext nativeClauseContext) static ItemTypeinferSchemaTypeOfVariantDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> df, ExceptionMetadata metadata) 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
-
JSONiqValidateIterator
public JSONiqValidateIterator(ItemRuntimePlan instance, ItemType itemType, boolean isValidate, 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
-
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
-
convertRDDToValidDataFrame
public static HomogeneousItemDataFrame convertRDDToValidDataFrame(org.apache.spark.api.java.JavaRDD<Item> itemRDD, ItemType itemType, DynamicContext context, boolean isValidate, RuntimeStaticContext staticContext) -
convertRDDToVariantDataFrame
public static HomogeneousItemDataFrame convertRDDToVariantDataFrame(org.apache.spark.api.java.JavaRDD<Item> itemRDD) -
convertToDataFrameSchema
public static org.apache.spark.sql.types.StructType convertToDataFrameSchema(ItemType itemType, RuntimeStaticContext staticContext) -
convertLocalItemsToDataFrame
public static HomogeneousItemDataFrame convertLocalItemsToDataFrame(List<Item> items, ItemType itemType, DynamicContext context, boolean isValidate, RuntimeStaticContext staticContext) -
convertLocalItemsToVariantDataFrame
-
createNativeRDD
Description copied from interface:RDDRuntimePlanBuilds the RDD for one evaluation.- Specified by:
createNativeRDDin interfaceRDDRuntimePlan<Item>- Parameters:
context- the dynamic context for that evaluation- Returns:
- the resulting RDD
-
generateNativeQuery
- Specified by:
generateNativeQueryin interfaceNativeQueryRuntimePlan
-
inferSchemaTypeOfVariantDataFrame
public static ItemType inferSchemaTypeOfVariantDataFrame(org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> df, ExceptionMetadata metadata)
-