astyanax

Can't create table with composite key using Astyanax client

扶醉桌前 提交于 2019-12-02 04:00:16
问题 How do I create table with composite keys using astyanax client. For now I've created it with cqlsh -3, and this is how it looks like in cli: [default@KS] describe my_cf; ColumnFamily: my_cf Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type Default column value validator: org.apache.cassandra.db.marshal.UTF8Type Columns sorted by: org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.TimeUUIDType,org.apache.cassandra.db.marshal.UTF8Type) GC grace seconds:

Can't create table with composite key using Astyanax client

大憨熊 提交于 2019-12-02 01:52:59
How do I create table with composite keys using astyanax client. For now I've created it with cqlsh -3, and this is how it looks like in cli: [default@KS] describe my_cf; ColumnFamily: my_cf Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type Default column value validator: org.apache.cassandra.db.marshal.UTF8Type Columns sorted by: org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.TimeUUIDType,org.apache.cassandra.db.marshal.UTF8Type) GC grace seconds: 864000 Compaction min/max thresholds: 4/32 Read repair chance: 0.1 DC Local Read repair chance: 0.0

Cassandra querying on a part of a key

喜夏-厌秋 提交于 2019-12-01 05:16:53
问题 I have a cassandra column family which has a row key like 2012-09-30-05-42-00:30:5856869 I need to query some thing like select * from cf where key like %5856869% Currently I am using Astyanax , is same possible in astyanax. If not, which implementation would support it. 回答1: LIKE queries are not supported in Cassandra. If you want to query based on part of a key, you'll want to use composite keys. But in this specific case, the 5856869 portion of the key would have to be the first part for

Cassandra Client Java API's [closed]

半世苍凉 提交于 2019-11-27 17:26:41
I have recently started working with Cassandra Database. Now I am in the process of evaluating which Cassandra client we should go forward with. I have seen various post on stackoverflow about which client to use for Cassandra but none has very definitive answer. My team has asked me to do some research on this and come up with certain pros and cons for each Cassandra Client API’s in Java. As I mentioned, I recently got involved with Cassandra so not have that much idea why certain people choose Pelops client and why certain people go with Astyanax and some other clients. I know brief things