gravitino.api.rel.view_change.ReplaceView¶
- class gravitino.api.rel.view_change.ReplaceView(_columns: list[gravitino.api.rel.column.Column], _representations: list[gravitino.api.rel.representation.Representation], _default_catalog: str | None = None, _default_schema: str | None = None, _comment: str | None = None)¶
Bases:
ViewChangeA ViewChange to replace the view body.
- __init__(_columns: list[gravitino.api.rel.column.Column], _representations: list[gravitino.api.rel.representation.Representation], _default_catalog: str | None = None, _default_schema: str | None = None, _comment: str | None = None) None¶
Methods
__init__(_columns, _representations[, ...])columns()Returns the new output columns.
comment()Returns the new comment.
Returns the new default catalog.
Returns the new default schema.
remove_property(property_name)Create a change for removing a view property.
rename(new_name)Create a change for renaming a view.
replace_view(columns, representations[, ...])Create a change for replacing the view body.
Returns the new representations.
set_property(property_name, value)Create a change for setting a view property.
- columns() list[gravitino.api.rel.column.Column]¶
Returns the new output columns.
- comment() str | None¶
Returns the new comment.
- default_catalog() str | None¶
Returns the new default catalog.
- default_schema() str | None¶
Returns the new default schema.
- static remove_property(property_name: str) RemoveProperty¶
Create a change for removing a view property.
- static rename(new_name: str) RenameView¶
Create a change for renaming a view.
- static replace_view(columns: list[gravitino.api.rel.column.Column], representations: list[gravitino.api.rel.representation.Representation], default_catalog: str | None = None, default_schema: str | None = None, comment: str | None = None) ReplaceView¶
Create a change for replacing the view body.
- representations() list[gravitino.api.rel.representation.Representation]¶
Returns the new representations.
- static set_property(property_name: str, value: str) SetProperty¶
Create a change for setting a view property.