cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varun Barala <varunbaral...@gmail.com>
Subject Re: CQL datatype for long?
Date Fri, 23 Dec 2016 09:21:20 GMT
yes!!

On Thu, Dec 8, 2016 at 1:21 PM, Check Peck <comptechgeeky@gmail.com> 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 <varunbarala99@gmail.com>
> wrote:
>
>>  use `bigint` for long.
>>
>>
>> Regards,
>> Varun Barala
>>
>> On Thu, Dec 8, 2016 at 10:32 AM, Check Peck <comptechgeeky@gmail.com>
>> 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 text,
>>>       clientid int,
>>>       deviceid long, // this is wrong I guess as I don't see long in CQL?
>>>       PRIMARY KEY (topic, partition)
>>>     );
>>>
>>> I need to have "deviceid" as long data type. Bcoz I am getting deviceid
>>> as long and that's how I want to store it.
>>>
>>
>>
>

Mime
View raw message