我想知道这是否可能在Hazelcast中实现。假设我们有一个Java实体:
public class BrtWeekDefinitions {
private Long id;
private BrtTimeCharts brtTimeCharts;
private BrtDayDefinitions brtDayDefinitions;
private Long weekDay;
}
此实体在内存中加载类型为:Long,BrtWeekDefinitions。
BrtTimeCharts和BrtDayDefinitions实体也会加载到各自的地图中。
这会起作用吗?
//Where mapObject is a map of type <Long,BrtWeekDefinitions>
mapObject.addIndex("BrtTimeCharts.id", false);
mapObject.addIndex("BrtDayDefinitions.id", false);
或者我必须这样做吗?
//Where mapObject is a map of type <Long,BrtTimeCharts>
mapObject.addIndex("id", false);
和
//Where mapObject is a map of type <Long,BrtDayDefinitions>
mapObject.addIndex("id", false);