@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:06.598Z") public enum TableSortStyle extends java.lang.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(java.lang.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.
|
public static final TableSortStyle AUTO
public static final TableSortStyle COMPOUND
public static final TableSortStyle INTERLEAVED
public static TableSortStyle[] values()
for (TableSortStyle c : TableSortStyle.values()) System.out.println(c);
public static TableSortStyle valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null