Package org.apache.iceberg
Class BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
java.lang.Object
org.apache.iceberg.BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
- All Implemented Interfaces:
 Catalog.TableBuilder
- Direct Known Subclasses:
 BaseMetastoreViewCatalog.BaseMetastoreViewCatalogTableBuilder,JdbcCatalog.ViewAwareTableBuilder
- Enclosing class:
 - BaseMetastoreCatalog
 
protected class BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
extends Object
implements Catalog.TableBuilder
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates the table.Starts a transaction to create or replace the table.Starts a transaction to create the table.Starts a transaction to replace the table.withLocation(String newLocation) Sets a location for the table.withPartitionSpec(PartitionSpec newSpec) Sets a partition spec for the table.withProperties(Map<String, String> properties) Adds key/value properties to the table.withProperty(String key, String value) Adds a key/value property to the table.withSortOrder(SortOrder newSortOrder) Sets a sort order for the table. 
- 
Constructor Details
- 
BaseMetastoreCatalogTableBuilder
 
 - 
 - 
Method Details
- 
withPartitionSpec
Description copied from interface:Catalog.TableBuilderSets a partition spec for the table.- Specified by:
 withPartitionSpecin interfaceCatalog.TableBuilder- Parameters:
 newSpec- a partition spec- Returns:
 - this for method chaining
 
 - 
withSortOrder
Description copied from interface:Catalog.TableBuilderSets a sort order for the table.- Specified by:
 withSortOrderin interfaceCatalog.TableBuilder- Parameters:
 newSortOrder- a sort order- Returns:
 - this for method chaining
 
 - 
withLocation
Description copied from interface:Catalog.TableBuilderSets a location for the table.- Specified by:
 withLocationin interfaceCatalog.TableBuilder- Parameters:
 newLocation- a location- Returns:
 - this for method chaining
 
 - 
withProperties
Description copied from interface:Catalog.TableBuilderAdds key/value properties to the table.- Specified by:
 withPropertiesin interfaceCatalog.TableBuilder- Parameters:
 properties- key/value properties- Returns:
 - this for method chaining
 
 - 
withProperty
Description copied from interface:Catalog.TableBuilderAdds a key/value property to the table.- Specified by:
 withPropertyin interfaceCatalog.TableBuilder- Parameters:
 key- a keyvalue- a value- Returns:
 - this for method chaining
 
 - 
create
Description copied from interface:Catalog.TableBuilderCreates the table.- Specified by:
 createin interfaceCatalog.TableBuilder- Returns:
 - the created table
 
 - 
createTransaction
Description copied from interface:Catalog.TableBuilderStarts a transaction to create the table.- Specified by:
 createTransactionin interfaceCatalog.TableBuilder- Returns:
 - the 
Transactionto create the table 
 - 
replaceTransaction
Description copied from interface:Catalog.TableBuilderStarts a transaction to replace the table.- Specified by:
 replaceTransactionin interfaceCatalog.TableBuilder- Returns:
 - the 
Transactionto replace the table 
 - 
createOrReplaceTransaction
Description copied from interface:Catalog.TableBuilderStarts a transaction to create or replace the table.- Specified by:
 createOrReplaceTransactionin interfaceCatalog.TableBuilder- Returns:
 - the 
Transactionto create or replace the table 
 
 -