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
Post a Comment