Package org.apache.iceberg.view
Interface ViewBuilder
- All Superinterfaces:
- VersionBuilder<ViewBuilder>
- All Known Implementing Classes:
- BaseMetastoreViewCatalog.BaseViewBuilder
A builder used to create or replace a SQL 
View.
 Call ViewCatalog.buildView(org.apache.iceberg.catalog.TableIdentifier) to create a new builder.
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Create the view.Create or replace the view.replace()Replace the view.default ViewBuilderwithLocation(String location) Sets a location for the viewwithProperties(Map<String, String> properties) Add key/value properties to the view.withProperty(String key, String value) Add a key/value property to the view.Methods inherited from interface org.apache.iceberg.view.VersionBuilderwithDefaultCatalog, withDefaultNamespace, withQuery, withSchema
- 
Method Details- 
withPropertiesAdd key/value properties to the view.- Parameters:
- properties- key/value properties
- Returns:
- this for method chaining
 
- 
withPropertyAdd a key/value property to the view.- Parameters:
- key- a key
- value- a value
- Returns:
- this for method chaining
 
- 
withLocationSets a location for the view- Parameters:
- location- the location to set for the view
- Returns:
- this for method chaining
 
- 
createView create()Create the view.- Returns:
- the view created
 
- 
replaceView replace()Replace the view.- Returns:
- the Viewreplaced
 
- 
createOrReplaceView createOrReplace()Create or replace the view.- Returns:
- the Viewcreated or replaced
 
 
-