Package org.apache.iceberg
Class BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
- java.lang.Object
- 
- org.apache.iceberg.BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder
 
- 
- All Implemented Interfaces:
- Catalog.TableBuilder
 - Enclosing class:
- BaseMetastoreCatalog
 
 protected class BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder extends java.lang.Object implements Catalog.TableBuilder 
- 
- 
Constructor SummaryConstructors Constructor Description BaseMetastoreCatalogTableBuilder(TableIdentifier identifier, Schema schema)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Tablecreate()Creates the table.TransactioncreateOrReplaceTransaction()Starts a transaction to create or replace the table.TransactioncreateTransaction()Starts a transaction to create the table.TransactionreplaceTransaction()Starts a transaction to replace the table.Catalog.TableBuilderwithLocation(java.lang.String newLocation)Sets a location for the table.Catalog.TableBuilderwithPartitionSpec(PartitionSpec newSpec)Sets a partition spec for the table.Catalog.TableBuilderwithProperties(java.util.Map<java.lang.String,java.lang.String> properties)Adds key/value properties to the table.Catalog.TableBuilderwithProperty(java.lang.String key, java.lang.String value)Adds a key/value property to the table.Catalog.TableBuilderwithSortOrder(SortOrder newSortOrder)Sets a sort order for the table.
 
- 
- 
- 
Constructor Detail- 
BaseMetastoreCatalogTableBuilderpublic BaseMetastoreCatalogTableBuilder(TableIdentifier identifier, Schema schema) 
 
- 
 - 
Method Detail- 
withPartitionSpecpublic Catalog.TableBuilder withPartitionSpec(PartitionSpec newSpec) Description copied from interface:Catalog.TableBuilderSets a partition spec for the table.- Specified by:
- withPartitionSpecin interface- Catalog.TableBuilder
- Parameters:
- newSpec- a partition spec
- Returns:
- this for method chaining
 
 - 
withSortOrderpublic Catalog.TableBuilder withSortOrder(SortOrder newSortOrder) Description copied from interface:Catalog.TableBuilderSets a sort order for the table.- Specified by:
- withSortOrderin interface- Catalog.TableBuilder
- Parameters:
- newSortOrder- a sort order
- Returns:
- this for method chaining
 
 - 
withLocationpublic Catalog.TableBuilder withLocation(java.lang.String newLocation) Description copied from interface:Catalog.TableBuilderSets a location for the table.- Specified by:
- withLocationin interface- Catalog.TableBuilder
- Parameters:
- newLocation- a location
- Returns:
- this for method chaining
 
 - 
withPropertiespublic Catalog.TableBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties) Description copied from interface:Catalog.TableBuilderAdds key/value properties to the table.- Specified by:
- withPropertiesin interface- Catalog.TableBuilder
- Parameters:
- properties- key/value properties
- Returns:
- this for method chaining
 
 - 
withPropertypublic Catalog.TableBuilder withProperty(java.lang.String key, java.lang.String value) Description copied from interface:Catalog.TableBuilderAdds a key/value property to the table.- Specified by:
- withPropertyin interface- Catalog.TableBuilder
- Parameters:
- key- a key
- value- a value
- Returns:
- this for method chaining
 
 - 
createpublic Table create() Description copied from interface:Catalog.TableBuilderCreates the table.- Specified by:
- createin interface- Catalog.TableBuilder
- Returns:
- the created table
 
 - 
createTransactionpublic Transaction createTransaction() Description copied from interface:Catalog.TableBuilderStarts a transaction to create the table.- Specified by:
- createTransactionin interface- Catalog.TableBuilder
- Returns:
- the Transactionto create the table
 
 - 
replaceTransactionpublic Transaction replaceTransaction() Description copied from interface:Catalog.TableBuilderStarts a transaction to replace the table.- Specified by:
- replaceTransactionin interface- Catalog.TableBuilder
- Returns:
- the Transactionto replace the table
 
 - 
createOrReplaceTransactionpublic Transaction createOrReplaceTransaction() Description copied from interface:Catalog.TableBuilderStarts a transaction to create or replace the table.- Specified by:
- createOrReplaceTransactionin interface- Catalog.TableBuilder
- Returns:
- the Transactionto create or replace the table
 
 
- 
 
-