Enum TableDistStyle

java.lang.Object
java.lang.Enum<TableDistStyle>
software.amazon.awscdk.services.redshift.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 Constants
    Enum Constant
    Description
    (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 Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AUTO

      @Stability(Experimental) public static final TableDistStyle AUTO
      (experimental) Amazon Redshift assigns an optimal distribution style based on the table data.
    • EVEN

      @Stability(Experimental) public static final TableDistStyle EVEN
      (experimental) The data in the table is spread evenly across the nodes in a cluster in a round-robin distribution.
    • KEY

      @Stability(Experimental) public static final TableDistStyle KEY
      (experimental) The data is distributed by the values in the DISTKEY column.
    • ALL

      @Stability(Experimental) public static final TableDistStyle ALL
      (experimental) A copy of the entire table is distributed to every node.
  • Method Details

    • values

      public static TableDistStyle[] 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

      public static TableDistStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null