protected class BaseMetastoreCatalog.BaseMetastoreCatalogTableBuilder extends java.lang.Object implements Catalog.TableBuilder
| Constructor and Description |
|---|
BaseMetastoreCatalogTableBuilder(TableIdentifier identifier,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
Table |
create()
Creates the table.
|
Transaction |
createOrReplaceTransaction()
Starts a transaction to create or replace the table.
|
Transaction |
createTransaction()
Starts a transaction to create the table.
|
Transaction |
replaceTransaction()
Starts a transaction to replace the table.
|
Catalog.TableBuilder |
withLocation(java.lang.String newLocation)
Sets a location for the table.
|
Catalog.TableBuilder |
withPartitionSpec(PartitionSpec newSpec)
Sets a partition spec for the table.
|
Catalog.TableBuilder |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Adds key/value properties to the table.
|
Catalog.TableBuilder |
withProperty(java.lang.String key,
java.lang.String value)
Adds a key/value property to the table.
|
Catalog.TableBuilder |
withSortOrder(SortOrder newSortOrder)
Sets a sort order for the table.
|
public BaseMetastoreCatalogTableBuilder(TableIdentifier identifier, Schema schema)
public Catalog.TableBuilder withPartitionSpec(PartitionSpec newSpec)
Catalog.TableBuilderwithPartitionSpec in interface Catalog.TableBuildernewSpec - a partition specpublic Catalog.TableBuilder withSortOrder(SortOrder newSortOrder)
Catalog.TableBuilderwithSortOrder in interface Catalog.TableBuildernewSortOrder - a sort orderpublic Catalog.TableBuilder withLocation(java.lang.String newLocation)
Catalog.TableBuilderwithLocation in interface Catalog.TableBuildernewLocation - a locationpublic Catalog.TableBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Catalog.TableBuilderwithProperties in interface Catalog.TableBuilderproperties - key/value propertiespublic Catalog.TableBuilder withProperty(java.lang.String key, java.lang.String value)
Catalog.TableBuilderwithProperty in interface Catalog.TableBuilderkey - a keyvalue - a valuepublic Table create()
Catalog.TableBuildercreate in interface Catalog.TableBuilderpublic Transaction createTransaction()
Catalog.TableBuildercreateTransaction in interface Catalog.TableBuilderTransaction to create the tablepublic Transaction replaceTransaction()
Catalog.TableBuilderreplaceTransaction in interface Catalog.TableBuilderTransaction to replace the tablepublic Transaction createOrReplaceTransaction()
Catalog.TableBuildercreateOrReplaceTransaction in interface Catalog.TableBuilderTransaction to create or replace the table