Skip to content
v2.278.0

InputFormat Class ​

Absolute class name of the Hadoop InputFormat to use when reading table files.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const inputFormat = glue.InputFormat.AVRO;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

input_format = glue.InputFormat.AVRO
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

InputFormat inputFormat = InputFormat.AVRO;
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var inputFormat = InputFormat.AVRO;
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

inputFormat := awscdk.Aws_glue.InputFormat_AVRO()

Initializer ​

ts
new InputFormat(className: string)
python
InputFormat(class_name: str)
java
new InputFormat(String className)
csharp
new InputFormat(string className)
go
NewInputFormat(ClassName *string)

Properties ​

InputFormat for Avro files.
classNamestringclass_namestrclassNameStringClassNamestringClassName*string #
CLOUDTRAILInputFormatCLOUDTRAILInputFormatCLOUDTRAILInputFormatCLOUDTRAILInputFormatCLOUDTRAILInputFormat static #
InputFormat for Cloudtrail Logs.
InputFormat for Orc files.
PARQUETInputFormatPARQUETInputFormatPARQUETInputFormatPARQUETInputFormatPARQUETInputFormat static #
InputFormat for Parquet files.
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