enum TableSortStyle
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Redshift.TableSortStyle |
Java | software.amazon.awscdk.services.redshift.TableSortStyle |
Python | aws_cdk.aws_redshift.TableSortStyle |
TypeScript (source) | @aws-cdk/aws-redshift » 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
| Name | Description |
|---|---|
| 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.

.NET
Java
Python
TypeScript (