Interface DateProjectionStep
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DateProjectionStep.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:52:11.258Z")
@Stability(Experimental)
public interface DateProjectionStep
extends software.amazon.jsii.JsiiSerializable
(experimental) A required-together interval step for DATE partition projection.
Bundling interval and intervalUnit into one value makes a partial step
(one without the other) unrepresentable.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDateProjectionStepstatic final classAn implementation forDateProjectionStep -
Method Summary
Modifier and TypeMethodDescriptionstatic DateProjectionStep.Builderbuilder()(experimental) Interval between partition values.(experimental) Unit for the interval.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInterval
(experimental) Interval between partition values. -
getIntervalUnit
(experimental) Unit for the interval. -
builder
- Returns:
- a
DateProjectionStep.BuilderofDateProjectionStep
-