Enum TableSortStyle

java.lang.Object
java.lang.Enum<TableSortStyle>
software.amazon.awscdk.services.redshift.TableSortStyle
All Implemented Interfaces:
Serializable, Comparable<TableSortStyle>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.857Z") @Stability(Experimental) public enum TableSortStyle extends Enum<TableSortStyle>
(experimental) The sort style of a table.

Example:

 Table.Builder.create(this, "Table")
         .tableColumns(List.of(Column.builder().name("col1").dataType("varchar(4)").sortKey(true).build(), Column.builder().name("col2").dataType("float").sortKey(true).build()))
         .cluster(cluster)
         .databaseName("databaseName")
         .sortStyle(TableSortStyle.COMPOUND)
         .build();
 
  • Enum Constant Details

    • AUTO

      @Stability(Experimental) public static final TableSortStyle AUTO
      (experimental) Amazon Redshift assigns an optimal sort key based on the table data.
    • COMPOUND

      @Stability(Experimental) public static final TableSortStyle COMPOUND
      (experimental) Specifies that the data is sorted using a compound key made up of all of the listed columns, in the order they are listed.
    • INTERLEAVED

      @Stability(Experimental) public static final TableSortStyle INTERLEAVED
      (experimental) Specifies that the data is sorted using an interleaved sort key.
  • Method Details

    • values

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