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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    Schema(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Schema(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Type
    array(Type itemType)
    (experimental) Creates an array of some other type.
    static Type
    decimal(Number precision)
    (experimental) Creates a decimal type.
    static Type
    decimal(Number precision, Number scale)
    (experimental) Creates a decimal type.
    static Type
    doChar(Number length)
    (experimental) Fixed length character data, with a specified length between 1 and 255.
    static Type
    map(Type keyType, Type valueType)
    (experimental) Creates a map of some primitive key type to some value type.
    static Type
    struct(List<? extends Column> columns)
    (experimental) Creates a nested structure containing individually named and typed columns.
    static Type
    varchar(Number length)
    (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

      @Stability(Experimental) public static final Type 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

      @Stability(Experimental) public static final Type BINARY
    • BOOLEAN

      @Stability(Experimental) public static final Type BOOLEAN
    • DATE

      @Stability(Experimental) public static final Type DATE
      (experimental) Date type.
    • DOUBLE

      @Stability(Experimental) public static final Type DOUBLE
    • FLOAT

      @Stability(Experimental) public static final Type FLOAT
    • INTEGER

      @Stability(Experimental) public static final Type 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

      @Stability(Experimental) public static final Type 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

      @Stability(Experimental) public static final Type STRING
      (experimental) Arbitrary-length string type.
    • TIMESTAMP

      @Stability(Experimental) public static final Type TIMESTAMP
      (experimental) Timestamp type (date and time).
    • TINY_INT

      @Stability(Experimental) public static final Type 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

      @Stability(Experimental) @NotNull public static Type array(@NotNull Type itemType)
      (experimental) Creates an array of some other type.

      Parameters:
      itemType - type contained by the array. This parameter is required.
    • doChar

      @Stability(Experimental) @NotNull public static Type doChar(@NotNull Number length)
      (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

      @Stability(Experimental) @NotNull public static Type decimal(@NotNull Number precision)
      (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

      @Stability(Experimental) @NotNull public static Type varchar(@NotNull Number length)
      (experimental) Variable length character data, with a specified length between 1 and 65535.

      Parameters:
      length - length between 1 and 65535. This parameter is required.