Class View.Builder
Object
org.apache.spark.sql.connector.catalog.View.Builder
- Enclosing class:
- View
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withCollation(String collation) withColumns(Column[] columns) withComment(String comment) withCurrentCatalog(String currentCatalog) withCurrentNamespace(String[] currentNamespace) withProperties(Map<String, String> properties) Replaces the current properties map with a defensive copy of the given map.withQueryColumnNames(String[] queryColumnNames) withQueryText(String queryText) withSchema(StructType schema) withSchemaMode(String schemaMode) withSqlConfigs(Map<String, String> sqlConfigs) withTableType(String tableType) withViewDependencies(DependencyList viewDependencies) Sets the structured dependency list for this view.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withQueryText
-
withCurrentCatalog
-
withCurrentNamespace
-
withSqlConfigs
-
withSchemaMode
-
withQueryColumnNames
-
withViewDependencies
Sets the structured dependency list for this view. Source tables and functions referenced by the view text should be recorded here so downstream consumers (e.g. catalogs persisting lineage) can access them without re-analyzing the view body. -
build
-
withColumns
-
withSchema
-
withProperties
Replaces the current properties map with a defensive copy of the given map. Any reserved keys set earlier via convenience setters (e.g.withComment(java.lang.String)) are discarded -- call those setters after this method, not before. -
withComment
-
withCollation
-
withOwner
-
withTableType
-