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 SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents the identifier for a dataset that is defined or referenced in a pipeline.static classRepresents the identifier for a dataset that is external to the current pipeline.static classstatic classRepresents the identifier for a dataset that is defined by the current pipeline.static class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.TableIdentifierparseAndValidatePersistedViewIdentifier(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.TableIdentifierparseAndValidateTemporaryViewIdentifier(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.TableIdentifierparseTableIdentifier(String name, org.apache.spark.sql.classic.SparkSession spark) 
- 
Constructor Details- 
GraphIdentifierManagerpublic GraphIdentifierManager()
 
- 
- 
Method Details- 
parseTableIdentifierpublic static org.apache.spark.sql.catalyst.TableIdentifier parseTableIdentifier(String name, org.apache.spark.sql.classic.SparkSession spark) 
- 
parseAndQualifyInputIdentifierpublic 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)
 
- 
parseAndQualifyTableIdentifierpublic 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 identifier
- currentCatalog- (undocumented)
- currentDatabase- (undocumented)
- Returns:
- the parsed table identifier
- Throws:
- AnalysisException
 
- 
parseAndValidateTemporaryViewIdentifierpublic 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
 
- 
parseAndValidatePersistedViewIdentifierpublic 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 identifier
- currentCatalog- the catalog
- currentDatabase- the schema
- Returns:
- the parsed view identifier
 
- 
parseAndQualifyFlowIdentifierpublic 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 identifier
- currentCatalog- (undocumented)
- currentDatabase- (undocumented)
- Returns:
- the parsed flow identifier
- Throws:
- AnalysisException
 
 
-