Class IdentifierHelper
Object
org.apache.spark.sql.pipelines.graph.IdentifierHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidassertIsFullyQualifiedForCreate(org.apache.spark.sql.catalyst.TableIdentifier identifier) Assert whether the identifier is properly fully qualified when creating a dataset.static voidassertIsFullyQualifiedForRead(org.apache.spark.sql.catalyst.TableIdentifier identifier) Assert whether the identifier is properly qualified when reading a dataset in a pipeline.static org.apache.spark.sql.catalyst.TableIdentifierfullyQualifyIdentifier(org.apache.spark.sql.catalyst.TableIdentifier maybeFullyQualifiedIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Fully qualifies provided identifier with provided catalog & schema.static booleanisPathIdentifier(org.apache.spark.sql.classic.SparkSession spark, org.apache.spark.sql.catalyst.TableIdentifier identifier) Return true if the identifier should be resolved as a path-based reference (i.e.,datasource.path).static booleanisSinglePartIdentifier(org.apache.spark.sql.catalyst.TableIdentifier identifier) Return whether the input identifier is a single-part identifier.static StringtoQuotedString(scala.collection.immutable.Seq<String> nameParts) Returns the quoted string for the name parts.static org.apache.spark.sql.catalyst.TableIdentifiertoTableIdentifier(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan table) Returns the table identifier constructed from the logical plan.static org.apache.spark.sql.catalyst.TableIdentifiertoTableIdentifier(scala.collection.immutable.Seq<String> nameParts) Returns the table identifier constructed from the name parts.
- 
Constructor Details- 
IdentifierHelperpublic IdentifierHelper()
 
- 
- 
Method Details- 
toQuotedStringReturns the quoted string for the name parts.- Parameters:
- nameParts- the dataset name parts.
- Returns:
- the quoted string for the name parts.
 
- 
toTableIdentifierpublic static org.apache.spark.sql.catalyst.TableIdentifier toTableIdentifier(scala.collection.immutable.Seq<String> nameParts) throws UnsupportedOperationException Returns the table identifier constructed from the name parts.- Parameters:
- nameParts- the dataset name parts.
- Returns:
- the table identifier constructed from the name parts.
- Throws:
- UnsupportedOperationException
 
- 
toTableIdentifierpublic static org.apache.spark.sql.catalyst.TableIdentifier toTableIdentifier(org.apache.spark.sql.catalyst.plans.logical.LogicalPlan table) Returns the table identifier constructed from the logical plan.- Parameters:
- table- the logical plan.
- Returns:
- the table identifier constructed from the logical plan.
 
- 
isSinglePartIdentifierpublic static boolean isSinglePartIdentifier(org.apache.spark.sql.catalyst.TableIdentifier identifier) Return whether the input identifier is a single-part identifier.
- 
isPathIdentifierpublic static boolean isPathIdentifier(org.apache.spark.sql.classic.SparkSession spark, org.apache.spark.sql.catalyst.TableIdentifier identifier) Return true if the identifier should be resolved as a path-based reference (i.e.,datasource.path).- Parameters:
- spark- (undocumented)
- identifier- (undocumented)
- Returns:
- (undocumented)
 
- 
fullyQualifyIdentifierpublic static org.apache.spark.sql.catalyst.TableIdentifier fullyQualifyIdentifier(org.apache.spark.sql.catalyst.TableIdentifier maybeFullyQualifiedIdentifier, scala.Option<String> currentCatalog, scala.Option<String> currentDatabase) Fully qualifies provided identifier with provided catalog & schema.
- 
assertIsFullyQualifiedForCreatepublic static void assertIsFullyQualifiedForCreate(org.apache.spark.sql.catalyst.TableIdentifier identifier) Assert whether the identifier is properly fully qualified when creating a dataset.
- 
assertIsFullyQualifiedForReadpublic static void assertIsFullyQualifiedForRead(org.apache.spark.sql.catalyst.TableIdentifier identifier) Assert whether the identifier is properly qualified when reading a dataset in a pipeline.
 
-