2010-08-14 76 views

回答

3

爲此,您需要在單獨的專欄系列中維護您自己的索引(您需要一種方法來查找由certatin製造商生產的所有產品(產品id)當您將所有產品ID都做一批突變很簡單)。 E.g

ManufacturerToProducts = { // this is a ColumnFamily 
    '22': { // this is the key to this Row inside the CF 
     // now we have an infinite # of columns in this row 
     'prod_1': "prod_1", //for simplicity I'm only showing the value (but in reality the values in the map are the entire Column.) 
     'prod_1911' : null   
     }, // end row 
     '23': { // this is the key to another row in the CF 
     // now we have another infinite # of columns in this row 
     'prod_1492': null, 
     }, 
    } 

(免責聲明:感謝Arin以上使用的註解)

+0

嗨!在閱讀完鏈接兩次之後,我真的不明白它,但也許在第四次或第五次之後:)感謝您的幫助! – Industrial 2010-08-16 17:10:55

+0

我已經稍微更新了我的答案。好點? – Schildmeijer 2010-08-24 19:35:20