sijie opened a new pull request #3683: [schema] Introduce `GenericSchema` 
interface
URL: https://github.com/apache/pulsar/pull/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`.
   
   This proposal adding the primitive schemas into `Schema` class. So people 
can program primitive schemas
   using Schema interface rather than specific implementations.
   
   ### Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (yes)
     - The schema: (yes)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to