cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mobiledream...@gmail.com
Subject python thrift cassandra: get_slice_super vs get_slice_super_by_names
Date Sun, 19 Jul 2009 05:24:48 GMT
*Why doesnt res return ColumnFamily Related whereas res2 works just fine
thanks?*

timestamp = time.time()
res = client.get_slice_super('Table1', kw, 'Super1','','',True,0,1000)
print *res*
[]
res2 = client.get_slice_super_by_names('Table1', 'tofu', 'Super1',
['Related',])[0]


print res2
[superColumn_t(name='Related', columns=[column_t(columnName='tofu calories',
value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687),
column_t(columnName='tofu festival', value="(dp1\nS'count'\np2\nI1\ns.",
timestamp=1247980687), column_t(columnName='tofu marinade',
value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687),
column_t(columnName='tofu recipe', value="(dp1\nS'count'\np2\nI1\ns.",
timestamp=1247980687), column_t(columnName='tofu recipes',
value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687),
column_t(columnName='tofu recipes easy', value="(dp1\nS'count'\np2\nI1\ns.",
timestamp=1247980687), column_t(columnName='tofu scramble',
value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687),
column_t(columnName='tofu stir fry', value="(dp1\nS'count'\np2\nI1\ns.",
timestamp=1247980687), column_t(columnName='tofurkey',
value="(dp1\nS'count'\np2\nI1\ns.", timestamp=1247980687),
column_t(columnName='tofutti', value="(dp1\nS'count'\np2\nI1\ns.",
timestamp=1247980687)])]


-- 
Bidegg worlds best auction site
http://bidegg.com

Mime
View raw message