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.TableBuilder
withPartitionSpec
in interface Catalog.TableBuilder
newSpec
- a partition specpublic Catalog.TableBuilder withSortOrder(SortOrder newSortOrder)
Catalog.TableBuilder
withSortOrder
in interface Catalog.TableBuilder
newSortOrder
- a sort orderpublic Catalog.TableBuilder withLocation(java.lang.String newLocation)
Catalog.TableBuilder
withLocation
in interface Catalog.TableBuilder
newLocation
- a locationpublic Catalog.TableBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Catalog.TableBuilder
withProperties
in interface Catalog.TableBuilder
properties
- key/value propertiespublic Catalog.TableBuilder withProperty(java.lang.String key, java.lang.String value)
Catalog.TableBuilder
withProperty
in interface Catalog.TableBuilder
key
- a keyvalue
- a valuepublic Table create()
Catalog.TableBuilder
create
in interface Catalog.TableBuilder
public Transaction createTransaction()
Catalog.TableBuilder
createTransaction
in interface Catalog.TableBuilder
Transaction
to create the tablepublic Transaction replaceTransaction()
Catalog.TableBuilder
replaceTransaction
in interface Catalog.TableBuilder
Transaction
to replace the tablepublic Transaction createOrReplaceTransaction()
Catalog.TableBuilder
createOrReplaceTransaction
in interface Catalog.TableBuilder
Transaction
to create or replace the table