Class DataFormat
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.DataFormat
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-17T14:54:05.019Z")
@Stability(Stable)
public class DataFormat
extends software.amazon.jsii.JsiiObject
Defines the input/output formats and ser/de for a single DataFormat.
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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataFormatDataFormat for Apache Web Server Logs.static final DataFormatDataFormat for Apache Avro.static final DataFormatDataFormat for CloudTrail logs stored on S3.static final DataFormatDataFormat for CSV Files.static final DataFormatStored as plain text files in JSON format.static final DataFormatDataFormat for Logstash Logs, using the GROK SerDe.static final DataFormatDataFormat for Apache ORC (Optimized Row Columnar).static final DataFormatDataFormat for Apache Parquet.static final DataFormatDataFormat for TSV (Tab-Separated Values). -
Constructor Summary
ConstructorsModifierConstructorDescriptionDataFormat(DataFormatProps props) protectedDataFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDataFormat(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionClassification string given to tables with this data format.InputFormatfor this data format.OutputFormatfor this data format.Serialization library for this data format.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
-
APACHE_LOGS
DataFormat for Apache Web Server Logs.Also works for CloudFront logs
- See Also:
-
AVRO
DataFormat for Apache Avro.- See Also:
-
CLOUDTRAIL_LOGS
DataFormat for CloudTrail logs stored on S3.- See Also:
-
CSV
DataFormat for CSV Files.- See Also:
-
JSON
Stored as plain text files in JSON format.Uses OpenX Json SerDe for serialization and deseralization.
- See Also:
-
LOGSTASH
DataFormat for Logstash Logs, using the GROK SerDe.- See Also:
-
ORC
DataFormat for Apache ORC (Optimized Row Columnar).- See Also:
-
PARQUET
DataFormat for Apache Parquet.- See Also:
-
TSV
DataFormat for TSV (Tab-Separated Values).- See Also:
-
-
Constructor Details
-
DataFormat
protected DataFormat(software.amazon.jsii.JsiiObjectRef objRef) -
DataFormat
protected DataFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DataFormat
- Parameters:
props- This parameter is required.
-
-
Method Details
-
getInputFormat
InputFormatfor this data format. -
getOutputFormat
OutputFormatfor this data format. -
getSerializationLibrary
Serialization library for this data format. -
getClassificationString
Classification string given to tables with this data format.
-