Hi All,
I'll reopen the pull request again after addressing review comments.
- There was a concern from Thomas regarding configuring the List
elements from the XML property file. I think this might create an issue. I
propose that in that case we create String getters and setters instead of
list. The signatures will stay the same but we'll change the type of the
fields to String to make them consistent:
- String topics
- public String getTopics()
- public void setTopics(String topics)
- I'll rename the branch name as suggested by Gaurav on the pull request.
Thanks.
~Bhupesh
On Wed, May 11, 2016 at 8:43 AM, Munagala Ramanath <[email protected]>
wrote:
> Yes, making the accessor types match the field will avoid confusion, so +1.
>
> We can add accessors like getTopicItem() and setTopicItem() for the
> individual
> elements if necessary.
>
> Ram
>
> On Wed, May 11, 2016 at 12:08 AM, Bhupesh Chawda <[email protected]>
> wrote:
>
> > Hi All,
> >
> > The fields in Kafka Input Operator in Malhar kafka project are of type
> > String array. However the getters and setters are not consistent and
> have a
> > return type and parameters of String type respectively.
> > This may cause issues in down stream systems and hence must be fixed. I
> > have created a JIRA to track this -
> > https://issues.apache.org/jira/browse/APEXMALHAR-2084
> >
> > I am proposing that the types of these fields be made List<String>
> instead
> > of String[ ]. Additionally also make the getters and setters accept
> > parameters and return data of the same type.
> >
> > Please let me know your thoughts on the same.
> >
> > Thanks
> > ~Bhupesh
> >
>