How do I retrieve table names in Cassandra using Java?
问题 If is use this code in a CQL shell , I get all the names of table(s) in that keyspace. DESCRIBE TABLES; I want to retrieve the same data using ResulSet . Below is my code in Java. String query = "DESCRIBE TABLES;"; ResultSet rs = session.execute(query); for(Row row : rs) { System.out.println(row); } While session and cluster has been initialized earlier as: Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").build(); Session session = cluster.connect("keyspace_name"); Or I like