Package org.apache.iceberg.view
Interface VersionBuilder<T>
-
- All Known Subinterfaces:
ReplaceViewVersion
,ViewBuilder
public interface VersionBuilder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
withDefaultCatalog(java.lang.String catalog)
Set the default catalog to use for the view.T
withDefaultNamespace(Namespace namespace)
Set the default namespace to use for the view.T
withQuery(java.lang.String dialect, java.lang.String sql)
Add a view representation for the given dialect and the SQL to the view.T
withSchema(Schema schema)
Set the view schema.
-
-
-
Method Detail
-
withSchema
T withSchema(Schema schema)
Set the view schema.- Parameters:
schema
- The schema to use for this view version- Returns:
- this for method chaining
-
withQuery
T withQuery(java.lang.String dialect, java.lang.String sql)
Add a view representation for the given dialect and the SQL to the view.- Parameters:
dialect
- The dialect of the view representationsql
- The SQL of the view representation- Returns:
- this for method chaining
-
withDefaultCatalog
T withDefaultCatalog(java.lang.String catalog)
Set 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
-
-