Andrew
Andrew

Reputation: 8470

Integer type for row keys in Cassandra

I'm using only integer keys in column family and it pointless to convert them to string every time.

So, how can I make them integers?

Upvotes: 1

Views: 718

Answers (1)

jbellis
jbellis

Reputation: 19377

In 0.6 you can't. Row keys are always strings.

In 0.7 row keys are binary so you can use a 32 or 64 bit int if that makes more sense.

Upvotes: 5

Related Questions