First of all thank you for writing Virgil.
I am trying to use Virgil Rest API to talk to cassandra in my POC
I tried finding the latest release of Virgil that has all the dependencies in it at
However, it does not have ./lib folder. The only place were I could find a complete release without additional dependencies is
code.google.com . But that release is fairly old 0.11 release.
Neverthe less, I was able to get 0.11 release working with my cassandra install through datastax. I have some questions which are not clearly addressed in the usage section on the virgil wiki page.
1. How do I pass an integer as partition key to get access to a record.
Here 'id' is my partition key.
I get the following error...
"Expected 4 or 0 byte int (3)
2. What if I have compound primary key say
id1 ( type varchar)
id2 ( type int)
Cluster key1 ( type int)
cluster key2 (type varchar) ..
How should I pass the paramters in the URL for such cases.
3. How do I get reponse in more readable format.
I am getting the character codes for the values. Most of them are either varchar or INTs.
{"\u0000\u0000\u0000":"","\u0000\u0007id_port\u0000":"\u0000\u0000<\u0004","\u0000\u0006status\u0000":"Operating","\u0000\tindicated\u0000":"@�\u0014{","\u0000\u0007deleted\u0000":"\u0000\u0000\u0000\u0000","\u0000\u0007percent\u0000":"B�\u0000\u0000","\u0000\tid_vertex\u0000":"\u0000\u0000Mp","\u0000\u0002id\u0000":"\u0000\u0000\u0001�","\u0000\bdisabled\u0000":"\u0000\u0000\u0000\u0000","\u0000\nid_account\u0000":"\u0000\u0000\u0000\u0000","\u0000\u0012production_planned\u0000":"B�"}
4. What if i want to create a column family with one column that is an integer. How to create it via this rest API. It seems by default all columns are assumed to be text.