incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mobiledream...@gmail.com
Subject Re: python thrift cassandra: get_slice_super vs get_slice_super_by_names
Date Sun, 19 Jul 2009 16:23:08 GMT
Jon i should have mntioned kw is 'tofu'
that is why it looks quite not right

On Sun, Jul 19, 2009 at 6:08 AM, Jonathan Ellis <jbellis@gmail.com> wrote:

> I would guess because kw != 'tofu'
>
> On Sun, Jul 19, 2009 at 12:24 AM, <mobiledreamers@gmail.com> wrote:
> > 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
> >
>



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

Mime
View raw message