Package org.apache.iceberg.view
Interface ViewBuilder
-
- All Superinterfaces:
VersionBuilder<ViewBuilder>
public interface ViewBuilder extends VersionBuilder<ViewBuilder>
A builder used to create or replace a SQLView
.Call
ViewCatalog.buildView(org.apache.iceberg.catalog.TableIdentifier)
to create a new builder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description View
create()
Create the view.View
createOrReplace()
Create or replace the view.View
replace()
Replace the view.ViewBuilder
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Add key/value properties to the view.ViewBuilder
withProperty(java.lang.String key, java.lang.String value)
Add a key/value property to the view.-
Methods inherited from interface org.apache.iceberg.view.VersionBuilder
withDefaultCatalog, withDefaultNamespace, withQuery, withSchema
-
-
-
-
Method Detail
-
withProperties
ViewBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Add key/value properties to the view.- Parameters:
properties
- key/value properties- Returns:
- this for method chaining
-
withProperty
ViewBuilder withProperty(java.lang.String key, java.lang.String value)
Add a key/value property to the view.- Parameters:
key
- a keyvalue
- a value- Returns:
- this for method chaining
-
create
View create()
Create the view.- Returns:
- the view created
-
-