Creating separate cache for HashMap may not be effective.

1.       The size of the index will be huge & it will impact fetch performance.

2.       If we have to query on multiple entries in HashMap then we will have 
to do individual queries & find intersection/ union result programmatically.

Thanks & Regards,
Arjit Rastogi

From: Stephen Darlington [mailto:[email protected]]
Sent: Friday,December 13, 2019 4:44 PM
To: [email protected]
Subject: Re: ValueExtractor support in Apache Ignite

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) 
<[email protected]<mailto:[email protected]>> 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:[email protected]]
Sent: Thursday,December 12, 2019 4:13 PM
To: [email protected]<mailto:[email protected]>
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) 
<[email protected]<mailto:[email protected]>>:
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.

Reply via email to