@aws-cdk_aws-redshift-alpha.TableDistStyle

enum TableDistStyle ๐Ÿ”น

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

The data distribution style of a table.

Example

new Table(this, 'Table', {
  tableColumns: [
    { name: 'col1', dataType: 'varchar(4)', distKey: true },
    { name: 'col2', dataType: 'float' },
  ],
  cluster: cluster,
  databaseName: 'databaseName',
  distStyle: TableDistStyle.KEY,
});

Members

NameDescription
AUTO ๐Ÿ”นAmazon Redshift assigns an optimal distribution style based on the table data.
EVEN ๐Ÿ”นThe data in the table is spread evenly across the nodes in a cluster in a round-robin distribution.
KEY ๐Ÿ”นThe data is distributed by the values in the DISTKEY column.
ALL ๐Ÿ”นA copy of the entire table is distributed to every node.

AUTO ๐Ÿ”น

Amazon Redshift assigns an optimal distribution style based on the table data.


EVEN ๐Ÿ”น

The data in the table is spread evenly across the nodes in a cluster in a round-robin distribution.


KEY ๐Ÿ”น

The data is distributed by the values in the DISTKEY column.


ALL ๐Ÿ”น

A copy of the entire table is distributed to every node.