All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.glue.alpha.Schema Maven / Gradle / Ivy

package software.amazon.awscdk.services.glue.alpha;

/**
 * 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 https://docs.aws.amazon.com/athena/latest/ug/data-types.html */ @javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-11-15T10:25:09.358Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.glue.alpha.$Module.class, fqn = "@aws-cdk/aws-glue-alpha.Schema") public class Schema extends software.amazon.jsii.JsiiObject { protected Schema(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected Schema(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } static { BIG_INT = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "BIG_INT", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); BINARY = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "BINARY", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); BOOLEAN = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "BOOLEAN", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); DATE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "DATE", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); DOUBLE = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "DOUBLE", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); FLOAT = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "FLOAT", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); INTEGER = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "INTEGER", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); SMALL_INT = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "SMALL_INT", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); STRING = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "STRING", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); TIMESTAMP = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "TIMESTAMP", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); TINY_INT = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.glue.alpha.Schema.class, "TINY_INT", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class)); } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Schema() { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } /** * (experimental) Creates an array of some other type. *

* @param itemType type contained by the array. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type array(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type itemType) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "array", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(itemType, "itemType is required") }); } /** * (experimental) Fixed length character data, with a specified length between 1 and 255. *

* @param length length between 1 and 255. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type doChar(final @org.jetbrains.annotations.NotNull java.lang.Number length) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "char", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(length, "length is required") }); } /** * (experimental) Creates a decimal type. *

* TODO: Bounds *

* @param precision the total number of digits. This parameter is required. * @param scale the number of digits in fractional part, the default is 0. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type decimal(final @org.jetbrains.annotations.NotNull java.lang.Number precision, final @org.jetbrains.annotations.Nullable java.lang.Number scale) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "decimal", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(precision, "precision is required"), scale }); } /** * (experimental) Creates a decimal type. *

* TODO: Bounds *

* @param precision the total number of digits. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type decimal(final @org.jetbrains.annotations.NotNull java.lang.Number precision) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "decimal", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(precision, "precision is required") }); } /** * (experimental) Creates a map of some primitive key type to some value type. *

* @param keyType type of key, must be a primitive. This parameter is required. * @param valueType type fo the value indexed by the key. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type map(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type keyType, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type valueType) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "map", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(keyType, "keyType is required"), java.util.Objects.requireNonNull(valueType, "valueType is required") }); } /** * (experimental) Creates a nested structure containing individually named and typed columns. *

* @param columns the columns of the structure. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type struct(final @org.jetbrains.annotations.NotNull java.util.List columns) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "struct", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(columns, "columns is required") }); } /** * (experimental) Variable length character data, with a specified length between 1 and 65535. *

* @param length length between 1 and 65535. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.glue.alpha.Type varchar(final @org.jetbrains.annotations.NotNull java.lang.Number length) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.glue.alpha.Schema.class, "varchar", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.glue.alpha.Type.class), new Object[] { java.util.Objects.requireNonNull(length, "length is required") }); } /** * (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. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type BIG_INT; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type BINARY; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type BOOLEAN; /** * (experimental) Date type. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type DATE; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type DOUBLE; /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type FLOAT; /** * (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. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type INTEGER; /** * (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. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type SMALL_INT; /** * (experimental) Arbitrary-length string type. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type STRING; /** * (experimental) Timestamp type (date and time). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type TIMESTAMP; /** * (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. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public final static software.amazon.awscdk.services.glue.alpha.Type TINY_INT; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy