Interface DatePartitionProjectionConfigurationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DatePartitionProjectionConfigurationProps.Jsii$Proxy
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")
.interval(1) // optional, defaults to 1
.intervalUnit(DateIntervalUnit.DAYS)
.build())))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDatePartitionProjectionConfigurationPropsstatic final classAn implementation forDatePartitionProjectionConfigurationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()(experimental) Date format for partition values.default Number(experimental) Interval between partition values.default DateIntervalUnit(experimental) Unit for the interval.getMax()(experimental) End date for the partition range (inclusive).getMin()(experimental) Start date for the partition range (inclusive).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFormat
(experimental) Date format for partition values.Uses Java SimpleDateFormat patterns.
- See Also:
-
getMax
(experimental) End date for the partition range (inclusive).Can be either:
- Fixed date in the format specified by
formatproperty - Relative date using NOW syntax
Same format constraints as
min. - Fixed date in the format specified by
-
getMin
(experimental) Start date for the partition range (inclusive).Can be either:
- Fixed date in the format specified by
formatproperty (e.g., '2020-01-01' for format 'yyyy-MM-dd') - Relative date using NOW syntax (e.g., 'NOW', 'NOW-3YEARS', 'NOW+1MONTH')
- See Also:
- Fixed date in the format specified by
-
getInterval
(experimental) Interval between partition values.Required (together with
intervalUnit) whenformatcarries sub-day precision — i.e. a field finer than a day, such as hours or AM/PM. At day or coarser precision Athena defaults the step, so it is optional.Default: - Athena's default step for the format's precision; required when `format` is sub-day precision
-
getIntervalUnit
(experimental) Unit for the interval.Required (together with
interval) whenformatcarries sub-day precision — i.e. a field finer than a day, such as hours or AM/PM. At day or coarser precision Athena defaults the step, so it is optional.Default: - Athena's default unit for the format's precision; required when `format` is sub-day precision
-
builder
-