public static interface Catalog.TableBuilder
tables
or start create/replace transactions
.
Call Catalog.buildTable(TableIdentifier, Schema)
to create a new builder.
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 location)
Sets a location for the table.
|
Catalog.TableBuilder |
withPartitionSpec(PartitionSpec spec)
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 sortOrder)
Sets a sort order for the table.
|
Catalog.TableBuilder withPartitionSpec(PartitionSpec spec)
spec
- a partition specCatalog.TableBuilder withSortOrder(SortOrder sortOrder)
sortOrder
- a sort orderCatalog.TableBuilder withLocation(java.lang.String location)
location
- a locationCatalog.TableBuilder withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- key/value propertiesCatalog.TableBuilder withProperty(java.lang.String key, java.lang.String value)
key
- a keyvalue
- a valueTable create()
Transaction createTransaction()
Transaction
to create the tableTransaction replaceTransaction()
Transaction
to replace the tableTransaction createOrReplaceTransaction()
Transaction
to create or replace the table