rivernate opened a new pull request #6911:
URL: https://github.com/apache/pulsar/pull/6911


   <!--
   ### Contribution Checklist
   
     - Fill out the template below to describe the changes contributed by the 
pull request. That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue, not mix up code from 
multiple issues.
     
     - Each commit in the pull request has a meaningful commit message
   
     - Once all items of the checklist are addressed, remove the above text and 
this checklist, leaving only the filled out template below.
   
   **(The sections below can be removed for hotfixes of typos)**
   -->
   ### Motivation
   
   We do extra processing steps and send back a different Record type than what 
is provided by KafkaConnectSource, but still desire to reuse a majority of the 
code. Having an Abstract implementation allows us to reuse the majority of the 
code while still being able to customize the Record and processRecord method.
   
   ### Modifications
   
   KafkaConnectSource was split into AbstractKafkaConnectSource with 
KafkaConnectSource extending the abstract. The processRecord method was made 
public to allow overriding of the method. The inner class KafkaSourceRecord was 
also split into an abstract implementation to allow different types of Records.
   
   ### Verifying this change
   
   This change is already covered by existing tests, such as *(please describe 
tests)*.
   
   The change should only be a splitting of code with no behavioral changes to 
the KafkaConnectSource class.
   
   ### 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: no
     - The schema: no
     - 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
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to