public class CreateTableRequest extends Object implements Request
setTableMeta(TableMeta).
After initializing the instance, you can change the table's reserved throughput by calling setReservedThroughput(ReservedThroughput).
After initializing the instance, you can change the table's configuration by calling setTableOptions(TableOptions).| 构造器和说明 |
|---|
CreateTableRequest(TableMeta tableMeta,
TableOptions tableOptions)
Initializes a CreateTableRequest instance.
|
CreateTableRequest(TableMeta tableMeta,
TableOptions tableOptions,
List<IndexMeta> indexMeta) |
CreateTableRequest(TableMeta tableMeta,
TableOptions tableOptions,
ReservedThroughput reservedThroughput) |
CreateTableRequest(TableMeta tableMeta,
TableOptions tableOptions,
ReservedThroughput reservedThroughput,
List<IndexMeta> indexMeta) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addIndex(IndexMeta indexMeta)
Add index table
|
void |
addIndex(IndexMeta[] indexMetas)
Add index table
|
List<IndexMeta> |
getIndexMetaList()
Returns the index table meta list.
|
String |
getOperationName() |
ReservedThroughput |
getReservedThroughput()
Get the reserved throughput of the table.
|
SSESpecification |
getSseSpecification()
Get the configuration parameters for server-side encryption.
|
StreamSpecification |
getStreamSpecification()
Get the configuration parameters of the Stream.
|
TableMeta |
getTableMeta()
Get the table structure information.
|
TableOptions |
getTableOptions()
Get the configuration parameters of the table.
|
boolean |
hasLocalTxnSet()
Whether the local transaction switch is explicitly set
|
boolean |
isLocalTxnEnabled()
Get the local transaction switch.
|
void |
setLocalTxnEnabled(boolean enableLocalTxn)
Set the local transaction switch
|
void |
setReservedThroughput(ReservedThroughput reservedThroughput)
Set the reserved throughput for the table.
|
void |
setSseSpecification(SSESpecification sseSpecification)
Set the configuration parameters for server-side encryption
|
void |
setStreamSpecification(StreamSpecification streamSpecification)
Set the configuration parameters for the Stream
|
void |
setTableMeta(TableMeta tableMeta)
Set the table's structure information.
|
void |
setTableOptions(TableOptions tableOptions)
Set the table configuration parameters.
|
public CreateTableRequest(TableMeta tableMeta, TableOptions tableOptions)
The table's reserved throughput and configuration will both use default values. If there is a need for customization, the corresponding setter functions can be called.
By default, the table will not perform any pre-splitting. If you need to configure the table partitions, you can call the corresponding setting function.
tableMeta - The structural information of the table.public CreateTableRequest(TableMeta tableMeta, TableOptions tableOptions, ReservedThroughput reservedThroughput)
public CreateTableRequest(TableMeta tableMeta, TableOptions tableOptions, List<IndexMeta> indexMeta)
public CreateTableRequest(TableMeta tableMeta, TableOptions tableOptions, ReservedThroughput reservedThroughput, List<IndexMeta> indexMeta)
public String getOperationName()
getOperationName 在接口中 Requestpublic TableMeta getTableMeta()
public void setTableMeta(TableMeta tableMeta)
tableMeta - the table's structure informationpublic ReservedThroughput getReservedThroughput()
public void setReservedThroughput(ReservedThroughput reservedThroughput)
reservedThroughput - The reserved throughput for the table.public TableOptions getTableOptions()
public void setTableOptions(TableOptions tableOptions)
tableOptions - The table configuration.public StreamSpecification getStreamSpecification()
public void setStreamSpecification(StreamSpecification streamSpecification)
streamSpecification - public SSESpecification getSseSpecification()
public void setSseSpecification(SSESpecification sseSpecification)
sseSpecification - public void addIndex(IndexMeta[] indexMetas)
indexMetas - Index table metapublic void addIndex(IndexMeta indexMeta)
indexMeta - Index table metapublic List<IndexMeta> getIndexMetaList()
public boolean hasLocalTxnSet()
public void setLocalTxnEnabled(boolean enableLocalTxn)
enableLocalTxn - Local transaction switchpublic boolean isLocalTxnEnabled()
Copyright © 2025. All Rights Reserved.