Class GraphIdentifierManager
Object
org.apache.spark.sql.pipelines.graph.GraphIdentifierManager
Responsible for properly qualify the identifiers for datasets inside or referenced by the
dataflow graph.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Represents the identifier for a dataset that is defined or referenced in a pipeline.static class
Represents the identifier for a dataset that is external to the current pipeline.static class
static class
Represents the identifier for a dataset that is defined by the current pipeline.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseAndQualifyFlowIdentifier
(org.apache.spark.sql.catalyst.TableIdentifier rawFlowIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Parses the flow identifier from the raw flow identifier and fully qualify it.parseAndQualifyInputIdentifier
(org.apache.spark.sql.pipelines.graph.FlowAnalysisContext context, String rawInputName) Fully qualify (if needed) the user-specified identifier used to reference datasets, and categorizing the dataset we're referencing (i.e.parseAndQualifyTableIdentifier
(org.apache.spark.sql.catalyst.TableIdentifier rawTableIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Parses the table identifier from the raw table identifier and fully qualifies it.static org.apache.spark.sql.catalyst.TableIdentifier
parseAndValidatePersistedViewIdentifier
(org.apache.spark.sql.catalyst.TableIdentifier rawViewIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Parses and validates the view identifier from the raw view identifier for persisted views.static org.apache.spark.sql.catalyst.TableIdentifier
parseAndValidateTemporaryViewIdentifier
(org.apache.spark.sql.catalyst.TableIdentifier rawViewIdentifier) Parses and validates the view identifier from the raw view identifier for temporary views.static org.apache.spark.sql.catalyst.TableIdentifier
parseTableIdentifier
(String name, org.apache.spark.sql.classic.SparkSession spark)
-
Constructor Details
-
GraphIdentifierManager
public GraphIdentifierManager()
-
-
Method Details
-
parseTableIdentifier
public static org.apache.spark.sql.catalyst.TableIdentifier parseTableIdentifier(String name, org.apache.spark.sql.classic.SparkSession spark) -
parseAndQualifyInputIdentifier
public static GraphIdentifierManager.DatasetIdentifier parseAndQualifyInputIdentifier(org.apache.spark.sql.pipelines.graph.FlowAnalysisContext context, String rawInputName) Fully qualify (if needed) the user-specified identifier used to reference datasets, and categorizing the dataset we're referencing (i.e. dataset from this pipeline or dataset that is external to this pipeline).Returns whether the input dataset should be read as a dataset and also the qualified identifier.
- Parameters:
rawInputName
- the user-specified name when referencing datasets.context
- (undocumented)- Returns:
- (undocumented)
-
parseAndQualifyTableIdentifier
public static GraphIdentifierManager.InternalDatasetIdentifier parseAndQualifyTableIdentifier(org.apache.spark.sql.catalyst.TableIdentifier rawTableIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) throws AnalysisException Parses the table identifier from the raw table identifier and fully qualifies it.- Parameters:
rawTableIdentifier
- the raw table identifiercurrentCatalog
- (undocumented)currentDatabase
- (undocumented)- Returns:
- the parsed table identifier
- Throws:
AnalysisException
-
parseAndValidateTemporaryViewIdentifier
public static org.apache.spark.sql.catalyst.TableIdentifier parseAndValidateTemporaryViewIdentifier(org.apache.spark.sql.catalyst.TableIdentifier rawViewIdentifier) throws AnalysisException Parses and validates the view identifier from the raw view identifier for temporary views.- Parameters:
rawViewIdentifier
- the raw view identifier- Returns:
- the parsed view identifier
- Throws:
AnalysisException
-
parseAndValidatePersistedViewIdentifier
public static org.apache.spark.sql.catalyst.TableIdentifier parseAndValidatePersistedViewIdentifier(org.apache.spark.sql.catalyst.TableIdentifier rawViewIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Parses and validates the view identifier from the raw view identifier for persisted views.- Parameters:
rawViewIdentifier
- the raw view identifiercurrentCatalog
- the catalogcurrentDatabase
- the schema- Returns:
- the parsed view identifier
-
parseAndQualifyFlowIdentifier
public static GraphIdentifierManager.InternalDatasetIdentifier parseAndQualifyFlowIdentifier(org.apache.spark.sql.catalyst.TableIdentifier rawFlowIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) throws AnalysisException Parses the flow identifier from the raw flow identifier and fully qualify it.- Parameters:
rawFlowIdentifier
- the raw flow identifiercurrentCatalog
- (undocumented)currentDatabase
- (undocumented)- Returns:
- the parsed flow identifier
- Throws:
AnalysisException
-