Enum TableDistStyle
- All Implemented Interfaces:
Serializable
,Comparable<TableDistStyle>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.855Z")
@Stability(Experimental)
public enum TableDistStyle
extends Enum<TableDistStyle>
(experimental) The data distribution style of a table.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) A copy of the entire table is distributed to every node.(experimental) Amazon Redshift assigns an optimal distribution style based on the table data.(experimental) The data in the table is spread evenly across the nodes in a cluster in a round-robin distribution.(experimental) The data is distributed by the values in the DISTKEY column. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableDistStyle
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.
-
Enum Constant Details
-
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. -
ALL
(experimental) A copy of the entire table is distributed to every node.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-