Class CompressionType
(experimental) The compression type.
Inheritance
Namespace: Amazon.CDK.AWS.Glue.Alpha
Assembly: Amazon.CDK.AWS.Glue.Alpha.dll
Syntax (csharp)
public sealed class CompressionType : Enum
Syntax (vb)
Public NotInheritable Class CompressionType
Inherits
Enum
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_EXTERNAL_TABLE.html#r_CREATE_EXTERNAL_TABLE-parameters - under "TABLE PROPERTIES" > "compression_type"
ExampleMetadata: infused
Examples
Database myDatabase;
new S3Table(this, "MyTable", new S3TableProps {
StorageParameters = new [] { StorageParameter.SkipHeaderLineCount(1), StorageParameter.CompressionType(CompressionType.GZIP), StorageParameter.Custom("separatorChar", ",") },
// ...
Database = myDatabase,
Columns = new [] { new Column {
Name = "col1",
Type = Schema.STRING
} },
DataFormat = DataFormat.JSON
});
Synopsis
Fields
BZIP2 | (experimental) Burrows-Wheeler compression. |
GZIP | (experimental) Deflate compression. |
NONE | (experimental) No compression. |
SNAPPY | (experimental) Compression algorithm focused on high compression and decompression speeds, rather than the maximum possible compression. |
value__ |
Fields
BZIP2
(experimental) Burrows-Wheeler compression.
public const CompressionType BZIP2
Field Value
Type | Description |
---|---|
CompressionType |
Remarks
Stability: Experimental
GZIP
(experimental) Deflate compression.
public const CompressionType GZIP
Field Value
Type | Description |
---|---|
CompressionType |
Remarks
Stability: Experimental
NONE
(experimental) No compression.
public const CompressionType NONE
Field Value
Type | Description |
---|---|
CompressionType |
Remarks
Stability: Experimental
SNAPPY
(experimental) Compression algorithm focused on high compression and decompression speeds, rather than the maximum possible compression.
public const CompressionType SNAPPY
Field Value
Type | Description |
---|---|
CompressionType |
Remarks
Stability: Experimental
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |