class_docstr: 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))
  
  .. versionadded:: 1.16.0
class_docstr_tok: ["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",")",")","..","versionadded",":",":","1.16.0"]
docstr: :param path: The path to Avro data file.
  :param schema: The :class:`AvroSchema` of generic record.
docstr_tok: [":","param","path",":","The","path","to","Avro","data","file",".",":","param","schema",":","The",":","class",":","`","AvroSchema","`","of","generic","record","."]
code: def __init__(self, path: str, schema: "AvroSchema"):
      """
      :param path: The path to Avro data file.
      :param schema: The :class:`AvroSchema` of generic record.
      """
      jvm = get_gateway().jvm
      j_avro_input_format = jvm.org.apache.flink.formats.avro.AvroInputFormat(
          jvm.org.apache.flink.core.fs.Path(path),
          get_java_class(
              jvm.org.apache.flink.avro.shaded.org.apache.avro.generic.GenericRecord
          ),
      )
      super(AvroInputFormat, self).__init__(j_avro_input_format)
      self._type_info = GenericRecordAvroTypeInfo(schema)
  
imports: from py4j.java_gateway import get_java_class, JavaObject, java_import
  from pyflink.common.io import InputFormat
  from pyflink.common.serialization import BulkWriterFactory, SerializationSchema, DeserializationSchema
  from pyflink.common.typeinfo import TypeInformation
  from pyflink.datastream.utils import ResultTypeQueryable
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import get_field_value, load_java_class
label_desc: Use image node_id 1 to create a new AvroInputFormat object from inherited base classes: InputFormat, ResultTypeQueryable with example: obj = AvroInputFormat(path, schema)