Package org.apache.iceberg.view
Interface VersionBuilder<T>
- All Known Subinterfaces:
- ReplaceViewVersion,- ViewBuilder
- All Known Implementing Classes:
- BaseMetastoreViewCatalog.BaseViewBuilder
public interface VersionBuilder<T>
- 
Method SummaryModifier and TypeMethodDescriptionwithDefaultCatalog(String catalog) Set the default catalog to use for the view.withDefaultNamespace(Namespace namespace) Set the default namespace to use for the view.Add a view representation for the given dialect and the SQL to the view.withSchema(Schema schema) Set the view schema.
- 
Method Details- 
withSchemaSet the view schema.- Parameters:
- schema- The schema to use for this view version
- Returns:
- this for method chaining
 
- 
withQueryAdd a view representation for the given dialect and the SQL to the view.- Parameters:
- dialect- The dialect of the view representation
- sql- The SQL of the view representation
- Returns:
- this for method chaining
 
- 
withDefaultCatalogSet the default catalog to use for the view.- Parameters:
- catalog- The default catalog to use when the SQL does not contain a catalog
- Returns:
- this for method chaining
 
- 
withDefaultNamespaceSet the default namespace to use for the view.- Parameters:
- namespace- The default namespace to use when the SQL does not contain a namespace
- Returns:
- this for method chaining
 
 
-