@aws-cdk_aws-redshift-alpha.TableSortStyle

enum TableSortStyle ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.TableSortStyle
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#TableSortStyle
Javasoftware.amazon.awscdk.services.redshift.alpha.TableSortStyle
Pythonaws_cdk.aws_redshift_alpha.TableSortStyle
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป TableSortStyle

The sort style of a table.

Example

new Table(this, 'Table', {
  tableColumns: [
    { name: 'col1', dataType: 'varchar(4)', sortKey: true },
    { name: 'col2', dataType: 'float', sortKey: true },
  ],
  cluster: cluster,
  databaseName: 'databaseName',
  sortStyle: TableSortStyle.COMPOUND,
});

Members

NameDescription
AUTO ๐Ÿ”นAmazon Redshift assigns an optimal sort key based on the table data.
COMPOUND ๐Ÿ”นSpecifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed.
INTERLEAVED ๐Ÿ”นSpecifies that the data is sorted using an interleaved sort key.

AUTO ๐Ÿ”น

Amazon Redshift assigns an optimal sort key based on the table data.


COMPOUND ๐Ÿ”น

Specifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed.


INTERLEAVED ๐Ÿ”น

Specifies that the data is sorted using an interleaved sort key.