Interface SchemaRegistry

All Superinterfaces:
ConfigurableComponent, ControllerService

public interface SchemaRegistry extends ControllerService
Represents ControllerService strategy to expose internal and/or integrate with external Schema Registry
  • Method Details

    • retrieveSchema

      RecordSchema retrieveSchema(SchemaIdentifier schemaIdentifier) throws IOException, SchemaNotFoundException
      Retrieves the schema based on the provided descriptor. The descriptor must contain and schemaIdentifier or name, but not both, along with a version, and an optional branch name. For implementations that do not support branching, the branch name will be ignored.
      Parameters:
      schemaIdentifier - a schema schemaIdentifier
      Returns:
      the schema for the given descriptor
      Throws:
      IOException - if unable to communicate with the backing store
      SchemaNotFoundException - if unable to find the schema based on the given descriptor
    • getSuppliedSchemaFields

      Set<SchemaField> getSuppliedSchemaFields()
      Returns:
      the set of all Schema Fields that are supplied by the RecordSchema that is returned from retrieveSchema(SchemaIdentifier)