public interface ViewBuilder
View
.
Call ViewCatalog.buildView(org.apache.iceberg.catalog.TableIdentifier)
to create a new builder.
Modifier and Type | Method and Description |
---|---|
View |
create()
Create the view.
|
View |
createOrReplace()
Create or replace the view.
|
View |
replace()
Replace the view.
|
ViewBuilder |
withDefaultCatalog(java.lang.String defaultCatalog)
Set the view default catalog.
|
ViewBuilder |
withDefaultNamespace(Namespace defaultNamespace)
Set the view default namespace.
|
ViewBuilder |
withDialect(java.lang.String dialect)
Set the view SQL dialect.
|
ViewBuilder |
withFieldAliases(java.util.List<java.lang.String> fieldAliases)
Set the view field aliases.
|
ViewBuilder |
withFieldComments(java.util.List<java.lang.String> fieldComments)
Set the view field comments.
|
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.
|
ViewBuilder |
withQuery(java.lang.String query)
Set the view query.
|
ViewBuilder |
withQueryColumnNames(java.util.List<java.lang.String> queryColumnNames)
Set the view query column names.
|
ViewBuilder |
withSchema(Schema schema)
Set the view schema.
|
ViewBuilder withSchema(Schema schema)
schema
- view schemaViewBuilder withQuery(java.lang.String query)
query
- view queryViewBuilder withDialect(java.lang.String dialect)
dialect
- view SQL dialectViewBuilder withDefaultCatalog(java.lang.String defaultCatalog)
defaultCatalog
- view default catalogViewBuilder withDefaultNamespace(Namespace defaultNamespace)
defaultNamespace
- view default namespaceViewBuilder withQueryColumnNames(java.util.List<java.lang.String> queryColumnNames)
queryColumnNames
- view query column namesViewBuilder withFieldAliases(java.util.List<java.lang.String> fieldAliases)
fieldAliases
- view field aliasesViewBuilder withFieldComments(java.util.List<java.lang.String> fieldComments)
fieldComments
- view field commentsViewBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- key/value propertiesViewBuilder withProperty(java.lang.String key, java.lang.String value)
key
- a keyvalue
- a valueView create()