Show / Hide Table of Contents

Enum TableDistStyle

(experimental) The data distribution style of a table.

Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public enum TableDistStyle
Syntax (vb)
Public Enum TableDistStyle
Remarks

Stability: Experimental

ExampleMetadata: fixture=cluster infused

Examples
new Table(this, "Table", new TableProps {
                 TableColumns = new [] { new Column { Name = "col1", DataType = "varchar(4)", DistKey = true }, new Column { Name = "col2", DataType = "float" } },
                 Cluster = cluster,
                 DatabaseName = "databaseName",
                 DistStyle = TableDistStyle.KEY
             });

Synopsis

Fields

ALL

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

AUTO

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

EVEN

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

KEY

(experimental) The data is distributed by the values in the DISTKEY column.

Fields

Name Description
ALL

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

AUTO

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

EVEN

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

KEY

(experimental) The data is distributed by the values in the DISTKEY column.

Back to top Generated by DocFX