Interface SchemaInfo
public interface SchemaInfo
Describes a schema for broker-side schema negotiation and compatibility checks.
-
Method Summary
Modifier and TypeMethodDescriptionname()The name of the schema.static SchemaInfoBuild aSchemaInfofrom its components.Additional properties associated with the schema.byte[]schema()The raw schema definition bytes (e.g., Avro schema JSON, Protobuf descriptor).type()The type of the schema.
-
Method Details
-
name
-
type
SchemaType type()The type of the schema.- Returns:
- the
SchemaTypeindicating the serialization format
-
schema
byte[] schema()The raw schema definition bytes (e.g., Avro schema JSON, Protobuf descriptor).- Returns:
- the schema definition as a byte array
-
properties
-
of
Build aSchemaInfofrom its components. Useful for constructing a generic schema from a raw definition (e.g. an Avro/JSON schema document) viaSchema.generic(SchemaInfo).- Parameters:
name- the schema nametype- the schema typeschema- the raw schema definition bytes (e.g. Avro schema JSON); may benullproperties- additional schema properties; may benull- Returns:
- an immutable
SchemaInfo
-