Cassandra read Column -


string cqlstatement = "select * local"; (row row : session.execute(cqlstatement)) { system.out.println(row.tostring()); }

how each column value selected row ?

if using cassandra ds-driver following should work you.

string cqlstatement = "select * local";  (row row : session.execute(cqlstatement))         {             row.getstring("columnname"); // string data type //            row.getbool("columnname"); boolean data type //            row.getuuid("columnname"); uuid type //            row.getvarint("columnname"); int type //            row.getlong("columnname"); long type //            row.getdate("columnname"); date type //            row.getbytes("columnname"); bytes/anonymous type         } 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -