@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.085Z") @Stability(value=Experimental) public enum TableSortStyle extends Enum<TableSortStyle>
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 and Description |
|---|
AUTO
(experimental) Amazon Redshift assigns an optimal sort key based on the table data.
|
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
(experimental) Specifies that the data is sorted using an interleaved sort key.
|
| Modifier and Type | Method and Description |
|---|---|
static TableSortStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableSortStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final TableSortStyle AUTO
@Stability(value=Experimental) public static final TableSortStyle COMPOUND
@Stability(value=Experimental) public static final TableSortStyle INTERLEAVED
public static TableSortStyle[] values()
for (TableSortStyle c : TableSortStyle.values()) System.out.println(c);
public static TableSortStyle 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.