Class Schema
Inheritance
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public class Schema : DeputyBase
Syntax (vb)
Public Class Schema
Inherits DeputyBase
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/athena/latest/ug/data-types.html
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
Database = myDatabase,
Columns = new [] { new Column {
Name = "col1",
Type = Schema.STRING
} },
PartitionKeys = new [] { new Column {
Name = "year",
Type = Schema.SMALL_INT
}, new Column {
Name = "month",
Type = Schema.SMALL_INT
} },
DataFormat = DataFormat.JSON
});
Synopsis
Constructors
Schema() | |
Schema(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Schema(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
BIG_INT | (experimental) A 64-bit signed INTEGER in two’s complement format, with a minimum value of -2^63 and a maximum value of 2^63-1. |
BINARY | |
BOOLEAN | |
DATE | (experimental) Date type. |
DOUBLE | |
FLOAT | |
INTEGER | (experimental) A 32-bit signed INTEGER in two’s complement format, with a minimum value of -2^31 and a maximum value of 2^31-1. |
SMALL_INT | (experimental) A 16-bit signed INTEGER in two’s complement format, with a minimum value of -2^15 and a maximum value of 2^15-1. |
STRING | (experimental) Arbitrary-length string type. |
TIMESTAMP | (experimental) Timestamp type (date and time). |
TINY_INT | (experimental) A 8-bit signed INTEGER in two’s complement format, with a minimum value of -2^7 and a maximum value of 2^7-1. |
Methods
Array(IType) | (experimental) Creates an array of some other type. |
Char(Double) | (experimental) Fixed length character data, with a specified length between 1 and 255. |
Decimal(Double, Nullable<Double>) | (experimental) Creates a decimal type. |
Map(IType, IType) | (experimental) Creates a map of some primitive key type to some value type. |
Struct(IColumn[]) | (experimental) Creates a nested structure containing individually named and typed columns. |
Varchar(Double) | (experimental) Variable length character data, with a specified length between 1 and 65535. |
Constructors
Schema()
public Schema()
Remarks
Stability: Experimental
Schema(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Schema(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Schema(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Schema(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
BIG_INT
(experimental) A 64-bit signed INTEGER in two’s complement format, with a minimum value of -2^63 and a maximum value of 2^63-1.
public static IType BIG_INT { get; }
Property Value
Remarks
Stability: Experimental
BINARY
BOOLEAN
DATE
(experimental) Date type.
public static IType DATE { get; }
Property Value
Remarks
Stability: Experimental
DOUBLE
FLOAT
INTEGER
(experimental) A 32-bit signed INTEGER in two’s complement format, with a minimum value of -2^31 and a maximum value of 2^31-1.
public static IType INTEGER { get; }
Property Value
Remarks
Stability: Experimental
SMALL_INT
(experimental) A 16-bit signed INTEGER in two’s complement format, with a minimum value of -2^15 and a maximum value of 2^15-1.
public static IType SMALL_INT { get; }
Property Value
Remarks
Stability: Experimental
STRING
(experimental) Arbitrary-length string type.
public static IType STRING { get; }
Property Value
Remarks
Stability: Experimental
TIMESTAMP
(experimental) Timestamp type (date and time).
public static IType TIMESTAMP { get; }
Property Value
Remarks
Stability: Experimental
TINY_INT
(experimental) A 8-bit signed INTEGER in two’s complement format, with a minimum value of -2^7 and a maximum value of 2^7-1.
public static IType TINY_INT { get; }
Property Value
Remarks
Stability: Experimental
Methods
Array(IType)
(experimental) Creates an array of some other type.
public static IType Array(IType itemType)
Parameters
- itemType IType
type contained by the array.
Returns
Remarks
Stability: Experimental
Char(Double)
(experimental) Fixed length character data, with a specified length between 1 and 255.
public static IType Char(double length)
Parameters
- length System.Double
length between 1 and 255.
Returns
Remarks
Stability: Experimental
Decimal(Double, Nullable<Double>)
(experimental) Creates a decimal type.
public static IType Decimal(double precision, Nullable<double> scale = null)
Parameters
- precision System.Double
the total number of digits.
- scale System.Nullable<System.Double>
the number of digits in fractional part, the default is 0.
Returns
Remarks
TODO: Bounds
Stability: Experimental
Map(IType, IType)
(experimental) Creates a map of some primitive key type to some value type.
public static IType Map(IType keyType, IType valueType)
Parameters
- keyType IType
type of key, must be a primitive.
- valueType IType
type fo the value indexed by the key.
Returns
Remarks
Stability: Experimental
Struct(IColumn[])
(experimental) Creates a nested structure containing individually named and typed columns.
public static IType Struct(IColumn[] columns)
Parameters
- columns IColumn[]
the columns of the structure.
Returns
Remarks
Stability: Experimental
Varchar(Double)
(experimental) Variable length character data, with a specified length between 1 and 65535.
public static IType Varchar(double length)
Parameters
- length System.Double
length between 1 and 65535.
Returns
Remarks
Stability: Experimental