Package org.apache.iceberg.view
Class BaseMetastoreViewCatalog.BaseViewBuilder
java.lang.Object
org.apache.iceberg.view.BaseMetastoreViewCatalog.BaseViewBuilder
- All Implemented Interfaces:
- VersionBuilder<ViewBuilder>,- ViewBuilder
- Enclosing class:
- BaseMetastoreViewCatalog
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()Create the view.Create or replace the view.replace()Replace the view.withDefaultCatalog(String catalog) Set the default catalog to use for the view.withDefaultNamespace(Namespace namespace) Set the default namespace to use for the view.withLocation(String newLocation) Sets a location for the viewwithProperties(Map<String, String> newProperties) Add key/value properties to the view.withProperty(String key, String value) Add a key/value property to the view.Add a view representation for the given dialect and the SQL to the view.withSchema(Schema newSchema) Set the view schema.
- 
Constructor Details- 
BaseViewBuilder
 
- 
- 
Method Details- 
withSchemaDescription copied from interface:VersionBuilderSet the view schema.- Specified by:
- withSchemain interface- VersionBuilder<ViewBuilder>
- Parameters:
- newSchema- The schema to use for this view version
- Returns:
- this for method chaining
 
- 
withQueryDescription copied from interface:VersionBuilderAdd a view representation for the given dialect and the SQL to the view.- Specified by:
- withQueryin interface- VersionBuilder<ViewBuilder>
- Parameters:
- dialect- The dialect of the view representation
- sql- The SQL of the view representation
- Returns:
- this for method chaining
 
- 
withDefaultCatalogDescription copied from interface:VersionBuilderSet the default catalog to use for the view.- Specified by:
- withDefaultCatalogin interface- VersionBuilder<ViewBuilder>
- Parameters:
- catalog- The default catalog to use when the SQL does not contain a catalog
- Returns:
- this for method chaining
 
- 
withDefaultNamespaceDescription copied from interface:VersionBuilderSet the default namespace to use for the view.- Specified by:
- withDefaultNamespacein interface- VersionBuilder<ViewBuilder>
- Parameters:
- namespace- The default namespace to use when the SQL does not contain a namespace
- Returns:
- this for method chaining
 
- 
withPropertiesDescription copied from interface:ViewBuilderAdd key/value properties to the view.- Specified by:
- withPropertiesin interface- ViewBuilder
- Parameters:
- newProperties- key/value properties
- Returns:
- this for method chaining
 
- 
withPropertyDescription copied from interface:ViewBuilderAdd a key/value property to the view.- Specified by:
- withPropertyin interface- ViewBuilder
- Parameters:
- key- a key
- value- a value
- Returns:
- this for method chaining
 
- 
withLocationDescription copied from interface:ViewBuilderSets a location for the view- Specified by:
- withLocationin interface- ViewBuilder
- Parameters:
- newLocation- the location to set for the view
- Returns:
- this for method chaining
 
- 
createDescription copied from interface:ViewBuilderCreate the view.- Specified by:
- createin interface- ViewBuilder
- Returns:
- the view created
 
- 
replaceDescription copied from interface:ViewBuilderReplace the view.- Specified by:
- replacein interface- ViewBuilder
- Returns:
- the Viewreplaced
 
- 
createOrReplaceDescription copied from interface:ViewBuilderCreate or replace the view.- Specified by:
- createOrReplacein interface- ViewBuilder
- Returns:
- the Viewcreated or replaced
 
 
-