Skip to content

TableProps

Properties for defining a Table.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ots-table

Initializer

import com.aliyun.ros.cdk.ots.TableProps;
TableProps.builder()
    .instanceName(java.lang.String)
    .instanceName(IResolvable)
    .primaryKey(IResolvable)
    .primaryKey(java.util.List<IResolvable)
    .primaryKey(PrimaryKeyProperty>)
    .tableName(java.lang.String)
    .tableName(IResolvable)
//  .columns(IResolvable)
//  .columns(java.util.List<IResolvable)
//  .columns(ColumnsProperty>)
//  .deviationCellVersionInSec(java.lang.Number)
//  .deviationCellVersionInSec(IResolvable)
//  .maxVersions(java.lang.Number)
//  .maxVersions(IResolvable)
//  .reservedThroughput(IResolvable)
//  .reservedThroughput(ReservedThroughputProperty)
//  .secondaryIndices(IResolvable)
//  .secondaryIndices(java.util.List<IResolvable)
//  .secondaryIndices(SecondaryIndicesProperty>)
//  .timeToLive(java.lang.Number)
//  .timeToLive(IResolvable)
    .build();

Properties

Name Type Description
instanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceName: The name of the OTS instance in which table will locate.
primaryKey com.aliyun.ros.cdk.core.IResolvable OR java.util.ListPrimaryKeyProperty> Property primaryKey: It describes the attribute value of primary key.
tableName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property tableName: The table name of the OTS instance.
columns com.aliyun.ros.cdk.core.IResolvable OR java.util.ListColumnsProperty> Property columns: Attribute column for table store.
deviationCellVersionInSec java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property deviationCellVersionInSec: Maximum version deviation.
maxVersions java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property maxVersions: The maximum number of versions stored in this table.
reservedThroughput com.aliyun.ros.cdk.core.IResolvable OR ReservedThroughputProperty Property reservedThroughput: The initial reserved read\/write throughput setting of the table to be created, the reserved read throughput and reserved write throughput of any table cannot exceed 5000.
secondaryIndices com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecondaryIndicesProperty> Property secondaryIndices: The secondary indices of the table.
timeToLive java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property timeToLive: The retention time of data stored in this table (unit: second).

instanceNameRequired

public java.lang.Object getInstanceName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceName: The name of the OTS instance in which table will locate.


primaryKeyRequired

public java.lang.Object getPrimaryKey();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListPrimaryKeyProperty>

Property primaryKey: It describes the attribute value of primary key.

The number of primary_key should not be less than one and not be more than four.


tableNameRequired

public java.lang.Object getTableName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property tableName: The table name of the OTS instance.


columnsOptional

public java.lang.Object getColumns();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListColumnsProperty>

Property columns: Attribute column for table store.


deviationCellVersionInSecOptional

public java.lang.Object getDeviationCellVersionInSec();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property deviationCellVersionInSec: Maximum version deviation.

The purpose is mainly to prohibit writing and expected large data, such as setting the deviation_cell_version_in_sec to 1000, and if the current timestamp is 10000, the timestamp range allowed to be written is [10000 - 1000, 10000 + 1000]. The valid value is 1-9223372036854775807. Defaults to 86400.


maxVersionsOptional

public java.lang.Object getMaxVersions();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property maxVersions: The maximum number of versions stored in this table.

The valid value is 1-2147483647. Default to 1.


reservedThroughputOptional

public java.lang.Object getReservedThroughput();

Property reservedThroughput: The initial reserved read\/write throughput setting of the table to be created, the reserved read throughput and reserved write throughput of any table cannot exceed 5000.


secondaryIndicesOptional

public java.lang.Object getSecondaryIndices();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecondaryIndicesProperty>

Property secondaryIndices: The secondary indices of the table.


timeToLiveOptional

public java.lang.Object getTimeToLive();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property timeToLive: The retention time of data stored in this table (unit: second).

The value maximum is 2147483647 and -1 means never expired. Default to -1.