Enum DateIntervalUnit
- All Implemented Interfaces:
Serializable,Comparable<DateIntervalUnit>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:30.025Z")
@Stability(Deprecated)
@Deprecated
public enum DateIntervalUnit
extends Enum<DateIntervalUnit>
Deprecated.
(deprecated) Date interval unit for partition projection.
Example:
Database myDatabase;
S3Table.Builder.create(this, "MyTable")
.database(myDatabase)
.columns(List.of(Column.builder()
.name("data")
.type(Schema.STRING)
.build()))
.partitionKeys(List.of(Column.builder()
.name("date")
.type(Schema.STRING)
.build()))
.dataFormat(DataFormat.JSON)
.partitionProjection(Map.of(
"date", PartitionProjectionConfiguration.date(DatePartitionProjectionConfigurationProps.builder()
.min("2020-01-01")
.max("2023-12-31")
.format("yyyy-MM-dd")
// `step` bundles interval + unit (supply both or neither). Optional at day
// precision or coarser; required when the format is sub-day (e.g. hours).
.step(DateProjectionStep.builder().interval(1).intervalUnit(DateIntervalUnit.DAYS).build())
.build())))
.build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DateIntervalUnitDeprecated.Returns the enum constant of this type with the specified name.static DateIntervalUnit[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YEARS
Deprecated.(deprecated) Year interval. -
MONTHS
Deprecated.(deprecated) Month interval. -
WEEKS
Deprecated.(deprecated) Week interval. -
DAYS
Deprecated.(deprecated) Day interval (default). -
HOURS
Deprecated.(deprecated) Hour interval. -
MINUTES
Deprecated.(deprecated) Minute interval. -
SECONDS
Deprecated.(deprecated) Second interval.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-