Re: CQL datatype for long?

2016-12-23 Thread Varun Barala
yes!! On Thu, Dec 8, 2016 at 1:21 PM, Check Peck wrote: > And then from datastax java driver, I can use. Am I right? > > To Read: > row.getLong(); > > To write > boundStatement.setLong() > > > On Wed, Dec 7, 2016 at 6:50 PM, Varun Barala >

Re: CQL datatype for long?

2016-12-07 Thread Check Peck
And then from datastax java driver, I can use. Am I right? To Read: row.getLong(); To write boundStatement.setLong() On Wed, Dec 7, 2016 at 6:50 PM, Varun Barala wrote: > use `bigint` for long. > > > Regards, > Varun Barala > > On Thu, Dec 8, 2016 at 10:32 AM, Check

Re: CQL datatype for long?

2016-12-07 Thread Varun Barala
use `bigint` for long. Regards, Varun Barala On Thu, Dec 8, 2016 at 10:32 AM, Check Peck wrote: > What is the CQL data type I should use for long? I have to create a column > with long data type. Cassandra version is 2.0.10. > > CREATE TABLE storage ( > key

CQL datatype for long?

2016-12-07 Thread Check Peck
What is the CQL data type I should use for long? I have to create a column with long data type. Cassandra version is 2.0.10. CREATE TABLE storage ( key text, clientid int, deviceid long, // this is wrong I guess as I don't see long in CQL? PRIMARY KEY (topic,