Using the CQL syntax with cassandra-jdbc driver….
this doesnt work, just get empty strings:
PreparedStatement pstmt = conn.prepareStatement("select * from myCF");
ResultSet rset = pstmt.executeQuery();
ResultSetMetaData rsmd = rset.getMetaData();
int cols = rsmd.getColumnCount();
pset.next();
print rsmd.getColumnName(0);
print pset.getString(0);
...
Apparently I have to use unwrap or something like that per row…
Post full example please for when you dont know column names.
OK this is what worked:
Note that to get proper display of keys, columnnames, and values, I had to define a Column Family like below: