Class Schema
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.alpha.Schema
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:07.922Z")
@Stability(Experimental)
public class Schema
extends software.amazon.jsii.JsiiObject
Example:
Database myDatabase; S3Table.Builder.create(this, "MyTable") .database(myDatabase) .columns(List.of(Column.builder() .name("col1") .type(Schema.STRING) .build())) .partitionKeys(List.of(Column.builder() .name("year") .type(Schema.SMALL_INT) .build(), Column.builder() .name("month") .type(Schema.SMALL_INT) .build())) .dataFormat(DataFormat.JSON) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Type
(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.static final Type
static final Type
static final Type
(experimental) Date type.static final Type
static final Type
static final Type
(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.static final Type
(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.static final Type
(experimental) Arbitrary-length string type.static final Type
(experimental) Timestamp type (date and time).static final Type
(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. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
(experimental) Creates an array of some other type.static Type
(experimental) Creates a decimal type.static Type
(experimental) Creates a decimal type.static Type
(experimental) Fixed length character data, with a specified length between 1 and 255.static Type
(experimental) Creates a map of some primitive key type to some value type.static Type
(experimental) Creates a nested structure containing individually named and typed columns.static Type
(experimental) Variable length character data, with a specified length between 1 and 65535.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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.
-
-
Constructor Details
-
Schema
protected Schema(software.amazon.jsii.JsiiObjectRef objRef) -
Schema
protected Schema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Schema
@Stability(Experimental) public Schema()
-
-
Method Details
-
array
(experimental) Creates an array of some other type.- Parameters:
itemType
- type contained by the array. This parameter is required.
-
doChar
(experimental) Fixed length character data, with a specified length between 1 and 255.- Parameters:
length
- length between 1 and 255. This parameter is required.
-
decimal
@Stability(Experimental) @NotNull public static Type decimal(@NotNull Number precision, @Nullable Number scale) (experimental) Creates a decimal type.TODO: Bounds
- Parameters:
precision
- the total number of digits. This parameter is required.scale
- the number of digits in fractional part, the default is 0.
-
decimal
(experimental) Creates a decimal type.TODO: Bounds
- Parameters:
precision
- the total number of digits. This parameter is required.
-
map
@Stability(Experimental) @NotNull public static Type map(@NotNull Type keyType, @NotNull Type valueType) (experimental) Creates a map of some primitive key type to some value type.- Parameters:
keyType
- type of key, must be a primitive. This parameter is required.valueType
- type fo the value indexed by the key. This parameter is required.
-
struct
@Stability(Experimental) @NotNull public static Type struct(@NotNull List<? extends Column> columns) (experimental) Creates a nested structure containing individually named and typed columns.- Parameters:
columns
- the columns of the structure. This parameter is required.
-
varchar
(experimental) Variable length character data, with a specified length between 1 and 65535.- Parameters:
length
- length between 1 and 65535. This parameter is required.
-