The “Ignite Way” of doing that would be to normalise the data, put the IdentifierMap as a separate, probably co-located cache.
Regards, Stephen > On 13 Dec 2019, at 09:53, Rastogi, Arjit (CWM-NR) <arjit.rast...@rbccm.com> > wrote: > > Hi Ilya, > > We want to create index on the keys present in HashMap present in the POJO we > want to put in cache. > > Thanks & Regards, > Arjit Rastogi > <>From: Ilya Kasnacheev [mailto:ilya.kasnach...@gmail.com] > Sent: Thursday,December 12, 2019 4:13 PM > To: user@ignite.apache.org > Subject: Re: ValueExtractor support in Apache Ignite > > Hello! > > I don't think we have anything like that. > > Why do you need such baroque data structure? > > Regards, > -- > Ilya Kasnacheev > > > вт, 10 дек. 2019 г. в 13:39, Rastogi, Arjit (CWM-NR) <arjit.rast...@rbccm.com > <mailto:arjit.rast...@rbccm.com>>: > Hi All, > > What is the Oracle Coherence ValueExtractor > <https://docs.oracle.com/middleware/1213/coherence/java-reference/com/tangosol/util/ValueExtractor.html> > equivalent in Apache Ignite which can enable us to create dynamic indexes by > extracting elements in a Map/ List inside POJO. > > Use case: > Example: We want to create cache of following class- > class Employee { > long employeeId; > String employeeName; > Map<String, String> identifierMap; > } > > identifierMap example = [{“id1” : “123456”},{“id2” : “45678”}] > > We want to put objects of Employee in cache. We want to create index on all > entries in identifierMap like “id1”, “id2” etc. > We have achieved the same using ValueExtractor > <https://docs.oracle.com/middleware/1213/coherence/java-reference/com/tangosol/util/ValueExtractor.html> > in Oracle Coherence. > > Thanks & Regards, > Arjit Rastogi > > ______________________________________________________________________ > > This email is intended only for the use of the individual(s) to whom it is > addressed and may be privileged and confidential. > Unauthorised use or disclosure is prohibited. If you receive this e-mail in > error, please advise immediately > and delete the original message. This message may have been altered without > your or our knowledge > and the sender does not accept any liability for any errors or omissions in > the message. > > Emails are monitored by supervisory personnel in jurisdictions where > monitoring is permitted. > Such communications are retained and may be produced to regulatory > authorities or others with legal rights to the information. >