
My requirement is to create above mentioned data structure.
I expect following operations on this data structure.
Operation 1 :
public Set<Subscriber> retrievedSetofSubscribers(eventName, RegionID, RegionName);
It means when I provide EventName, RegionID and RegionName (multiple keys), operation should return a list of subscribers.
Operation 2 :
public void InsertIntoTable(eventName, regionID, String RegionName, Subscriber);
Is there any Java supported API is available for above mentioned operations?
Create a class that represents one row of this table.
Then the whole table is a Map with ‘key’ being EventName and ‘value’ being the row class.
No multi-key needed!