[schema] Introduce `GenericSchema` interface (#3683)
*Motivation*
In order to introduce `GenericRecordBuilder`, we need to know the fields in a `GenericSchema`.
Otherwise, there is no way for us to build a GenericRecord.
*Modifications*
This proposal refactors current generic schema by introducing a `GenericSchema`. This generic schema
provides interfaces to retrieve the fields of a `GenericRecordSchema`.
*Additionally*
This proposal adding the primitive schemas into `Schema` class. So people can program primitive schemas
using Schema interface rather than specific implementations.
2 files changed
tree: dd303d2ae567e84f38057bfc72736daee160480c
- pulsar-io/