@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.084Z") @Stability(value=Experimental) public enum TableDistStyle extends Enum<TableDistStyle>
Example:
Table.Builder.create(this, "Table")
.tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").distKey(true).build(), Column.builder().name("col2").dataType("float").build()))
.cluster(cluster)
.databaseName("databaseName")
.distStyle(TableDistStyle.KEY)
.build();
| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static TableDistStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableDistStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final TableDistStyle AUTO
@Stability(value=Experimental) public static final TableDistStyle EVEN
@Stability(value=Experimental) public static final TableDistStyle KEY
@Stability(value=Experimental) public static final TableDistStyle ALL
public static TableDistStyle[] values()
for (TableDistStyle c : TableDistStyle.values()) System.out.println(c);
public static TableDistStyle valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.