Class Schema
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.Schema
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:05.095Z")
@Stability(Stable)
public class Schema
extends software.amazon.jsii.JsiiObject
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("NOW-3YEARS")
.max("NOW")
.format("yyyy-MM-dd")
.build())))
.build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeA 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 Typestatic final Typestatic final TypeDate type.static final Typestatic final Typestatic final TypeA 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 TypeA 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 TypeArbitrary-length string type.static final TypeTimestamp type (date and time).static final TypeA 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeCreates an array of some other type.static TypeCreates a custom type from a raw Glue input string.static TypeCreates a custom type from a raw Glue input string.static TypeCreates a decimal type.static TypeCreates a decimal type.static TypeFixed length character data, with a specified length between 1 and 255.static TypeCreates a map of some primitive key type to some value type.static TypeCreates a nested structure containing individually named and typed columns.static TypeVariable 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
BIG_INT
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
Date type. -
DOUBLE
-
FLOAT
-
INTEGER
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
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
Arbitrary-length string type. -
TIMESTAMP
Timestamp type (date and time). -
TINY_INT
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(Stable) public Schema()
-
-
Method Details
-
array
Creates an array of some other type.- Parameters:
itemType- type contained by the array. This parameter is required.
-
doChar
Fixed length character data, with a specified length between 1 and 255.- Parameters:
length- length between 1 and 255. This parameter is required.
-
custom
@Stability(Stable) @NotNull public static Type custom(@NotNull String inputString, @Nullable Boolean isPrimitive) Creates a custom type from a raw Glue input string.Escape hatch for column types the other
Schemafactories don't model. TheinputStringis emitted verbatim and is not validated.- Parameters:
inputString- the Glue input string for the type (for exampleinterval_day_to_second). This parameter is required.isPrimitive- whether the type is a primitive (non-nested) data type.
-
custom
Creates a custom type from a raw Glue input string.Escape hatch for column types the other
Schemafactories don't model. TheinputStringis emitted verbatim and is not validated.- Parameters:
inputString- the Glue input string for the type (for exampleinterval_day_to_second). This parameter is required.
-
decimal
@Stability(Stable) @NotNull public static Type decimal(@NotNull Number precision, @Nullable Number scale) Creates a decimal type.- Parameters:
precision- the total number of digits, between 1 and 38. This parameter is required.scale- the number of digits in the fractional part, between 0 and 38;.- See Also:
-
decimal
Creates a decimal type.- Parameters:
precision- the total number of digits, between 1 and 38. This parameter is required.- See Also:
-
map
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
Creates a nested structure containing individually named and typed columns.- Parameters:
columns- the columns of the structure. This parameter is required.
-
varchar
Variable length character data, with a specified length between 1 and 65535.- Parameters:
length- length between 1 and 65535. This parameter is required.
-