pingles / clj-hector

Simple Cassandra client for Clojure
42 stars 19 forks source link

How to use CQL #46

Open sougatabh opened 11 years ago

sougatabh commented 11 years ago

Hi, I am using this clj-hector for one of my project, creating a web tool to browse cassandra cluster. I want to execute a query like "select * from my-column-family". Could you suggest me which api to be used and how to use that. I used the below code but it does not render that data get-rows-cql-query keyspace "select * from Emp"

pingles commented 11 years ago

Hi,

Sorry, I just opened up the source and realised someone had added get-rows-cql-query. I'll see if I can take a look later- could you describe the schema you have (and the data you have in it) please.

sougatabh commented 11 years ago

Thanks for the prompt reply, I have a column family named person, below are the column metadata

Column Metadata: Column Name: full_name Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: email Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: state Validation Class: org.apache.cassandra.db.marshal.UTF8Type Column Name: birth_year Validation Class: org.apache.cassandra.db.marshal.LongType Column Name: gender Validation Class: org.apache.cassandra.db.marshal.UTF8Type