Skip to content
v2.274.0

Experimental

@aws-cdk/aws-redshift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TableSortStyle Enum ​

The sort style of a table.

Example ​

ts
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 ​

MemberDescription
AUTOAmazon Redshift assigns an optimal sort key based on the table data.
COMPOUNDSpecifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed.
INTERLEAVEDSpecifies that the data is sorted using an interleaved sort key.

Referenced by ​

  • TableProps.sortStylesort_stylesortStyleSortStyleSortStyle