enum TableSortStyle
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Redshift.TableSortStyle |
![]() | software.amazon.awscdk.services.redshift.TableSortStyle |
![]() | aws_cdk.aws_redshift.TableSortStyle |
![]() | @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.