class_docstr: Avro Schema class contains Java org.apache.avro.Schema.
  
  .. versionadded:: 1.16.0
class_docstr_tok: ["Avro","Schema","class","contains","Java","org.apache.avro.Schema",".","..","versionadded",":",":","1.16.0"]
docstr: Parse a schema definition file as Avro Schema.
  
  :param file_path: path to schema definition file.
  :return: the Avro Schema.
docstr_tok: ["Parse","a","schema","definition","file","as","Avro","Schema",".",":","param","file_path",":","path","to","schema","definition","file",".",":","return",":","the","Avro","Schema","."]
code: def parse_file(file_path: str) -> "AvroSchema":
      """
      Parse a schema definition file as Avro Schema.
  
      :param file_path: path to schema definition file.
      :return: the Avro Schema.
      """
      jvm = get_gateway().jvm
      j_file = jvm.java.io.File(file_path)
      JSchema = jvm.org.apache.flink.avro.shaded.org.apache.avro.Schema
      return AvroSchema(JSchema.Parser().parse(j_file))
  
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 4 for calling the AvroSchema obj's underlying member method code with example usage: obj.parse_file(file_path) and returns: AvroSchema