Hi,
I was trying to add index value into IMap while inserting into Cache for the first time iteself.
public class Event{
private int eventId;
private String eventName;
private String countryCode;
}
in my insert operation which is another class, i was trying to insert into map by iterating a list:
for(int i=0;i<TestPOC.getObjectList().size();i++){
mapObject.put(i, TestPOC.getObjectList().get(i));
mapObject.addIndex("eventName", false);
}
Exception Occured: Exception in thread "main" com.hazelcast.query.QueryException: java.lang.IllegalArgumentException: There is no suitable accessor for 'Event Name' on class 'class com.walmart.model.Event'
I am not understanding whats the issue here. Please help me out