Schema Entities
You can use Schema Registry to work with three types of schema entities:
The following table provides a more detailed description of the schema entities:
Table 4.1. Schema entity types
Entity Type | Description | Example |
---|---|---|
Schema group |
A logical grouping of similar schemas. A Schema Group can be based on any criteria you have for managing schemas. Schema Groups can have multiple Schema Metadata definitions. |
|
Schema metadata |
Metadata associated with a named schema. A metadata definition is applied to all the schema versions that are assigned to it. Key metadata elements include the following:
|
|
Schema version | The versioned schema associated a schema metadata definition. |
{ "type" : "record", "namespace" : "hortonworks.hdp.refapp.trucking", "name" : "truckgeoevent", "fields" : [ { "name" : "eventTime" , "type" : "string" }, { "name" : "eventSource" , "type" : "string" }, { "name" : "truckId" , "type" : "int" }, { "name" : "driverId" , "type" : "int"}, { "name" : "driverName" , "type" : "string"}, { "name" : "routeId" , "type" : "int"}, { "name" : "route" , "type" : "string"}, { "name" : "eventType" , "type" : "string"}, { "name" : "longitude" , "type" : "double"}, { "name" : "latitude" , "type" : "double"}, { "name" : "correlationId" , "type" : "long"} ] } |