Skip to content
v2.274.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 * as glue_alpha from '@aws-cdk/aws-glue-alpha';
const inputFormat = glue_alpha.InputFormat.AVRO;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_glue_alpha as glue_alpha

input_format = glue_alpha.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.alpha.*;

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

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

inputFormat := glue_alpha.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*stringrequired#
CLOUDTRAILInputFormatcloudtrailInputFormatCLOUDTRAILInputFormatCLOUDTRAILInputFormatCLOUDTRAILInputFormatrequiredstatic#
InputFormat for Cloudtrail Logs.
InputFormat for Orc files.
PARQUETInputFormatparquetInputFormatPARQUETInputFormatPARQUETInputFormatPARQUETInputFormatrequiredstatic#
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