@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:56.082Z")
public class DataFormat
extends software.amazon.jsii.JsiiObject
Example:
Database myDatabase; Table.Builder.create(this, "MyTable") .database(myDatabase) .tableName("my_table") .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();
Modifier and Type | Class and Description |
---|---|
static class |
DataFormat.Builder
(experimental) A fluent builder for
DataFormat . |
Modifier and Type | Field and Description |
---|---|
static DataFormat |
APACHE_LOGS
(experimental) DataFormat for Apache Web Server Logs.
|
static DataFormat |
AVRO
(experimental) DataFormat for Apache Avro.
|
static DataFormat |
CLOUDTRAIL_LOGS
(experimental) DataFormat for CloudTrail logs stored on S3.
|
static DataFormat |
CSV
(experimental) DataFormat for CSV Files.
|
static DataFormat |
JSON
(experimental) Stored as plain text files in JSON format.
|
static DataFormat |
LOGSTASH
(experimental) DataFormat for Logstash Logs, using the GROK SerDe.
|
static DataFormat |
ORC
(experimental) DataFormat for Apache ORC (Optimized Row Columnar).
|
static DataFormat |
PARQUET
(experimental) DataFormat for Apache Parquet.
|
static DataFormat |
TSV
(experimental) DataFormat for TSV (Tab-Separated Values).
|
Modifier | Constructor and Description |
---|---|
protected |
DataFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DataFormat(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
ClassificationString |
getClassificationString()
(experimental) Classification string given to tables with this data format.
|
InputFormat |
getInputFormat()
(experimental) `InputFormat` for this data format.
|
OutputFormat |
getOutputFormat()
(experimental) `OutputFormat` for this data format.
|
SerializationLibrary |
getSerializationLibrary()
(experimental) Serialization library for this data format.
|
public static final DataFormat APACHE_LOGS
Also works for CloudFront logs
public static final DataFormat AVRO
public static final DataFormat CLOUDTRAIL_LOGS
public static final DataFormat CSV
public static final DataFormat JSON
Uses OpenX Json SerDe for serialization and deseralization.
public static final DataFormat LOGSTASH
public static final DataFormat ORC
public static final DataFormat PARQUET
public static final DataFormat TSV
protected DataFormat(software.amazon.jsii.JsiiObjectRef objRef)
protected DataFormat(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public InputFormat getInputFormat()
public OutputFormat getOutputFormat()
public SerializationLibrary getSerializationLibrary()
public ClassificationString getClassificationString()