Package org.apache.iceberg.jdbc
Class JdbcCatalog.ViewAwareTableBuilder
- java.lang.Object
-
- org.apache.iceberg.BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
-
- org.apache.iceberg.jdbc.JdbcCatalog.ViewAwareTableBuilder
-
- All Implemented Interfaces:
Catalog.TableBuilder
- Enclosing class:
- JdbcCatalog
protected class JdbcCatalog.ViewAwareTableBuilder extends BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
The purpose of this class is to add view detection only when SchemaVersion.V1 schema is used when replacing a table.
-
-
Constructor Summary
Constructors Constructor Description ViewAwareTableBuilder(TableIdentifier identifier, Schema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transaction
replaceTransaction()
Starts a transaction to replace the table.-
Methods inherited from class org.apache.iceberg.BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
create, createOrReplaceTransaction, createTransaction, withLocation, withPartitionSpec, withProperties, withProperty, withSortOrder
-
-
-
-
Constructor Detail
-
ViewAwareTableBuilder
public ViewAwareTableBuilder(TableIdentifier identifier, Schema schema)
-
-
Method Detail
-
replaceTransaction
public Transaction replaceTransaction()
Description copied from interface:Catalog.TableBuilder
Starts a transaction to replace the table.- Specified by:
replaceTransaction
in interfaceCatalog.TableBuilder
- Overrides:
replaceTransaction
in classBaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
- Returns:
- the
Transaction
to replace the table
-
-