Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Connectors
    • Formats
  • PyFlink Common

pyflink.datastream.formats.avro.AvroInputFormat#

class AvroInputFormat(path: str, schema: AvroSchema)[source]#

Provides a FileInputFormat for Avro records.

Example:

>>> env = StreamExecutionEnvironment.get_execution_environment()
>>> schema = AvroSchema.parse_string(JSON_SCHEMA)
>>> ds = env.create_input(AvroInputFormat(FILE_PATH, schema))

New in version 1.16.0.

Methods

get_java_object()

get_produced_type()

previous

pyflink.datastream.formats.avro.GenericRecordAvroTypeInfo

next

pyflink.datastream.formats.avro.AvroBulkWriters

On this page
  • AvroInputFormat
Show Source

Created using Sphinx 5.3.0.