Hi Vinoth,

  Thanks for the prompt reply. This class was shared earlier on the mailing
list by someone to handle complex key. I was thinking maybe we can create a
Jason object and then parse it as string to create key then it will be full
proof because we don’t control the characters in the input data.

  I am not sure about the performance implications of doing so maybe you
can help there.

Thanks,
Jaimin

On Tuesday, 11 June 2019, Vinoth Chandar <[email protected]> wrote:

> Hi Jaimin,
>
> True. Is this a custom class you have? if we separate the concatenation by
> a standard special character, it should be fine?  for e.g  CA#US, C#AUS ?
>
> Thanks
> Vinoth
>
> On Mon, Jun 10, 2019 at 4:53 AM Jaimin Shah <[email protected]>
> wrote:
>
> > Hi
> >   I was going through the ComplexKeyGenerator class. I found that the
> class
> > generates key by concatenating the all keys to make compound key. But I
> am
> > wondering that some cases can arise later which can create problems.
> >
> > For example our data has 2 attributes as key
> > key1 key2  data
> > CA   US       xyz
> > C    AUS       abc
> >
> > In this case key for both rows will be same will it cause any problem?
> > Instead of keeping keys as string keeping them as map will solve the
> > problem?
> >
> > Thanks
> >
>

Reply via email to