Package org.apache.avro.idl
Class IdlFile
java.lang.Object
org.apache.avro.idl.IdlFile
A parsed IdlFile. Provides access to the named schemas in the IDL file and
the protocol containing the schemas.
-
Method Summary
Modifier and TypeMethodDescriptionThe (main) schema defined by the IDL file.getNamedSchema
(String name) Get a named schema defined by the IDL file, by name.The named schemas defined by the IDL file, mapped by their full name.The protocol defined by the IDL file.getWarnings
(String importFile)
-
Method Details
-
getMainSchema
The (main) schema defined by the IDL file. -
getProtocol
The protocol defined by the IDL file. -
getWarnings
-
getWarnings
-
getNamedSchemas
The named schemas defined by the IDL file, mapped by their full name. -
getNamedSchema
Get a named schema defined by the IDL file, by name. The name can be a simple name in the default namespace of the IDL file (e.g., the namespace of the protocol), or a full name.- Parameters:
name
- the full name of the schema, or a simple name- Returns:
- the schema, or
null
if it does not exist
-