1
我有在塞相當複雜的架構: -如何拒絕Go的Aerospike記錄?
DATA SCHEMA:
bin name: user_ids
Type: List of Strings
bin name: user_w
Type: List of Integers
bin name: users
Type: map<String<List>> where list is again list(size 3) of lists each of type String
我能讀懂這種模式直接轉換成Java對象與數據結構如下: -
userIds = (List<String>) r.getList("user_ids");
userWeights = (List<String>) r.getList("user_w");
users = (Map<String, List>) r.getValue("users");
但是我下面去結構是不能夠檢索它。它的來臨是空的。結構模式有問題嗎?
type AudienceRecord struct {
user_ids []string
user_w []int64
users map[string][][]string
}
謝謝,它跳過了我的注意力。謝謝! –