public void querySchema ( ) { ResultSet results = session . execute ( "SELECT * FROM simplex.playlists " + "WHERE id = 2cc9ccb7-6221-4ccb-8387-f22b6a1b354d;" ) ; System . out . printf ( "%-30s\t%-20s\t%-20s%n" , "title" , "album" , "artist" ) ; System . out . println ( "-------------------------------+-----------------------+--------------------" ) ; for ( Row row : results ) { System . out . printf ( "%-30s\t%-20s\t%-20s%n" , row . getString ( "title" ) , row . getString ( "album" ) , row . getString ( "artist" ) ) ; } }
Queries and displays data .