incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumar Ranjan <winnerd...@gmail.com>
Subject [No Subject]
Date Thu, 27 Feb 2014 20:48:01 GMT
Hey folks,

I am dealing with a legacy CFs where super_column has been used and python
client pycassa is being used. An example is given below. My question here
is, can I make use of  include_timestamp to select data between two
returned timestamps e.g between 1393516744591751 and 1393516772131811. This
is not exactly timeseries but just selected between two. Please help on
this?


Data is inserted like this

TEST_CF.insert('test_r_key',{'1234': {'key_name_1': 'taf_test_1'}})


Data Fetch:

TEST_CF.get('test_r_key', include_timestamp=True)


OrderedDict([('1234', OrderedDict([('key_name_1', (u'taf_test_1',
1393451990902345))])),

             ('1235', OrderedDict([('key_name_2', (u'taf_test_2',
1393516744591751))])),

             ('1236', OrderedDict([('key_name_3', (u'taf_test_3',
1393516772131782))]))

             ('1237', OrderedDict([('key_name_4', (u'taf_test_4',
1393516772131799))]))

             ('1238', OrderedDict([('key_name_5', (u'taf_test_5',
1393516772131811))]))

             ('1239', OrderedDict([('key_name_6', (u'taf_test_6',
1393516772131854))]))

             ('1240', OrderedDict([('key_name_7', (u'taf_test_7',
1393516772131899))]))

            ])

Mime
View raw message