Show / Hide Table of Contents

Class IntegerPartitionProjectionConfigurationProps

(experimental) Properties for INTEGER partition projection configuration.

Inheritance
object
IntegerPartitionProjectionConfigurationProps
Implements
IIntegerPartitionProjectionConfigurationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

double?

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

double?

Remarks

Default: 1

Stability: Experimental

Max

(experimental) Maximum value for the integer partition range (inclusive).

public double Max { get; set; }
Property Value

double

Remarks

Stability: Experimental

Min

(experimental) Minimum value for the integer partition range (inclusive).

public double Min { get; set; }
Property Value

double

Remarks

Stability: Experimental

Implements

IIntegerPartitionProjectionConfigurationProps
Back to top Generated by DocFX