class InputFormat
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.InputFormat |
Java | software.amazon.awscdk.services.glue.InputFormat |
Python | aws_cdk.aws_glue.InputFormat |
TypeScript (source) | @aws-cdk/aws-glue » InputFormat |
Absolute class name of the Hadoop InputFormat
to use when reading table files.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as glue from '@aws-cdk/aws-glue';
const inputFormat = glue.InputFormat.AVRO;
Initializer
new InputFormat(className: string)
Parameters
- className
string
Properties
Name | Type | Description |
---|---|---|
class | string | |
static AVRO | Input | InputFormat for Avro files. |
static CLOUDTRAIL | Input | InputFormat for Cloudtrail Logs. |
static ORC | Input | InputFormat for Orc files. |
static PARQUET | Input | InputFormat for Parquet files. |
static TEXT | Input | An InputFormat for plain text files. |
className
Type:
string
static AVRO
Type:
Input
InputFormat for Avro files.
static CLOUDTRAIL
Type:
Input
InputFormat for Cloudtrail Logs.
See also: https://docs.aws.amazon.com/athena/latest/ug/cloudtrail.html
static ORC
Type:
Input
InputFormat for Orc files.
See also: https://hive.apache.org/javadocs/r1.2.2/api/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.html
static PARQUET
Type:
Input
InputFormat for Parquet files.
static TEXT
Type:
Input
An InputFormat for plain text files.
Files are broken into lines. Either linefeed or carriage-return are used to signal end of line. Keys are the position in the file, and values are the line of text. JSON & CSV files are examples of this InputFormat
See also: https://hadoop.apache.org/docs/stable/api/org/apache/hadoop/mapred/TextInputFormat.html