@Evolving
public interface NamespaceChange
SupportsNamespaces.alterNamespace(java.lang.String[], org.apache.spark.sql.connector.catalog.NamespaceChange...). For example,
import NamespaceChange._
val catalog = Catalogs.load(name)
catalog.alterNamespace(ident,
setProperty("prop", "value"),
removeProperty("other_prop")
)
| Modifier and Type | Interface and Description |
|---|---|
static class |
NamespaceChange.RemoveProperty
A NamespaceChange to remove a namespace property.
|
static class |
NamespaceChange.SetProperty
A NamespaceChange to set a namespace property.
|
| Modifier and Type | Method and Description |
|---|---|
static NamespaceChange |
removeProperty(String property)
Create a NamespaceChange for removing a namespace property.
|
static NamespaceChange |
setProperty(String property,
String value)
Create a NamespaceChange for setting a namespace property.
|
static NamespaceChange setProperty(String property, String value)
If the property already exists, it will be replaced with the new value.
property - the property namevalue - the new property valuestatic NamespaceChange removeProperty(String property)
If the property does not exist, the change will succeed.
property - the property name