Class IntegerPartitionProjectionConfigurationProps
(experimental) Properties for INTEGER partition projection configuration.
Inherited Members
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class IntegerPartitionProjectionConfigurationProps : IIntegerPartitionProjectionConfigurationProps
Syntax (vb)
Public Class IntegerPartitionProjectionConfigurationProps Implements IIntegerPartitionProjectionConfigurationProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
Database = myDatabase,
Columns = new [] { new Column {
Name = "data",
Type = Schema.STRING
} },
PartitionKeys = new [] { new Column {
Name = "year",
Type = Schema.INTEGER
} },
DataFormat = DataFormat.JSON,
PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
{ "year", PartitionProjectionConfiguration.Integer(new IntegerPartitionProjectionConfigurationProps {
Min = 2020,
Max = 2023,
Interval = 1, // optional, defaults to 1
Digits = 4
}) }
}
});
Synopsis
Constructors
| IntegerPartitionProjectionConfigurationProps() | (experimental) Properties for INTEGER partition projection configuration. |
Properties
| Digits | (experimental) Number of digits to pad the partition value with leading zeros. |
| Interval | (experimental) Interval between partition values. |
| Max | (experimental) Maximum value for the integer partition range (inclusive). |
| Min | (experimental) Minimum value for the integer partition range (inclusive). |
Constructors
IntegerPartitionProjectionConfigurationProps()
(experimental) Properties for INTEGER partition projection configuration.
public IntegerPartitionProjectionConfigurationProps()
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
Database = myDatabase,
Columns = new [] { new Column {
Name = "data",
Type = Schema.STRING
} },
PartitionKeys = new [] { new Column {
Name = "year",
Type = Schema.INTEGER
} },
DataFormat = DataFormat.JSON,
PartitionProjection = new Dictionary<string, PartitionProjectionConfiguration> {
{ "year", PartitionProjectionConfiguration.Integer(new IntegerPartitionProjectionConfigurationProps {
Min = 2020,
Max = 2023,
Interval = 1, // optional, defaults to 1
Digits = 4
}) }
}
});
Properties
Digits
(experimental) Number of digits to pad the partition value with leading zeros.
public double? Digits { get; set; }
Property Value
Remarks
With digits: 4, partition values: 0001, 0002, ..., 0100
Default: - no static number of digits and no leading zeroes
Stability: Experimental
Interval
(experimental) Interval between partition values.
public double? Interval { get; set; }
Property Value
Remarks
Default: 1
Stability: Experimental
Max
(experimental) Maximum value for the integer partition range (inclusive).
public double Max { get; set; }
Property Value
Remarks
Stability: Experimental
Min
(experimental) Minimum value for the integer partition range (inclusive).
public double Min { get; set; }
Property Value
Remarks
Stability: Experimental