Class RedshiftRelationVisitor<D extends io.openlineage.client.OpenLineage.Dataset>
java.lang.Object
scala.runtime.AbstractPartialFunction<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,List<D>>
io.openlineage.spark.api.QueryPlanVisitor<org.apache.spark.sql.execution.datasources.LogicalRelation,D>
io.openlineage.spark.agent.vendor.redshift.lifecycle.RedshiftRelationVisitor<D>
- All Implemented Interfaces:
io.openlineage.spark.api.JobNameSuffixProvider<org.apache.spark.sql.execution.datasources.LogicalRelation>,scala.Function1<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,,List<D>> scala.PartialFunction<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,List<D>>
public class RedshiftRelationVisitor<D extends io.openlineage.client.OpenLineage.Dataset>
extends io.openlineage.spark.api.QueryPlanVisitor<org.apache.spark.sql.execution.datasources.LogicalRelation,D>
LogicalPlan visitor that matches SaveIntoDataSourceCommands that use a RedshiftRelation. This function extracts a OpenLineage.Dataset from the Redshift table
referenced by the relation.-
Field Summary
Fields inherited from class io.openlineage.spark.api.QueryPlanVisitor
contextFields inherited from interface io.openlineage.spark.api.JobNameSuffixProvider
SUFFIX_DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionRedshiftRelationVisitor(@NonNull io.openlineage.spark.api.OpenLineageContext context, io.openlineage.spark.api.DatasetFactory<D> factory) -
Method Summary
Modifier and TypeMethodDescriptionapply(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan x) booleanisDefinedAt(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) protected booleanisRedshiftClass(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) Methods inherited from class io.openlineage.spark.api.QueryPlanVisitor
catalogTableFor, inputDataset, internalClassName, isDefinedAt, jobNameSuffix, outputDataset, toStringMethods inherited from class scala.runtime.AbstractPartialFunction
andThen, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, applyOrElse, compose, lift, orElse, runWithMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.openlineage.spark.api.JobNameSuffixProvider
jobNameSuffix, tableIdentifierToSuffix, trimPath
-
Constructor Details
-
RedshiftRelationVisitor
public RedshiftRelationVisitor(@NonNull @NonNull io.openlineage.spark.api.OpenLineageContext context, io.openlineage.spark.api.DatasetFactory<D> factory)
-
-
Method Details
-
apply
- Specified by:
applyin interfacescala.Function1<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,List<D extends io.openlineage.client.OpenLineage.Dataset>> - Overrides:
applyin classscala.runtime.AbstractPartialFunction<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,List<D extends io.openlineage.client.OpenLineage.Dataset>>
-
isRedshiftClass
protected boolean isRedshiftClass(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) -
isDefinedAt
public boolean isDefinedAt(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan plan) - Specified by:
isDefinedAtin interfacescala.PartialFunction<org.apache.spark.sql.catalyst.plans.logical.LogicalPlan,List<D extends io.openlineage.client.OpenLineage.Dataset>> - Overrides:
isDefinedAtin classio.openlineage.spark.api.QueryPlanVisitor<org.apache.spark.sql.execution.datasources.LogicalRelation,D extends io.openlineage.client.OpenLineage.Dataset>
-