Class SchemaResolver

java.lang.Object
org.apache.avro.util.SchemaResolver

public final class SchemaResolver extends Object
Utility class to resolve schemas that are unavailable at the point they are referenced in a schema file. This class is meant for internal use: use at your own risk!
  • Method Details

    • unresolvedSchema

      public static Schema unresolvedSchema(String name)
      Create a schema to represent an "unresolved" schema. (used to represent a schema whose definition does not exist, yet).
      Parameters:
      name - a schema name
      Returns:
      an unresolved schema for the given name
    • isUnresolvedSchema

      public static boolean isUnresolvedSchema(Schema schema)
      Is this an unresolved schema.
      Parameters:
      schema - a schema
      Returns:
      whether the schema is an unresolved schema
    • getUnresolvedSchemaName

      public static String getUnresolvedSchemaName(Schema schema)
      Get the unresolved schema name.
      Parameters:
      schema - an unresolved schema
      Returns:
      the name of the unresolved schema
    • isFullyResolvedSchema

      public static boolean isFullyResolvedSchema(Schema schema)
      Is this an unresolved schema?