Class TableInfo.Builder
Object
org.apache.spark.sql.connector.catalog.TableInfo.Builder
- Enclosing class:
- TableInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withCollation(String collation) withColumns(Column[] columns) withComment(String comment) withConstraints(Constraint[] constraints) withLocation(String location) withPartitions(Transform[] partitions) withProperties(Map<String, String> properties) Replaces the current properties map with a defensive copy of the given map.withProvider(String provider) WritesTableCatalog.PROP_PROVIDERinto the current properties map.withSchema(StructType schema) withTableType(String tableType)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withPartitions
-
withConstraints
-
withProvider
WritesTableCatalog.PROP_PROVIDERinto the current properties map. -
withLocation
-
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
-