Created
December 3, 2014 04:29
-
-
Save bsbodden/a9f543097ca4c85c6715 to your computer and use it in GitHub Desktop.
HelloCassandra.java: Query1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session = cluster.connect("oink"); | |
for (Row row : session.execute("SELECT oink_id, dateOf(oink_id), user_id, body FROM oinks")) { | |
System.out.println("========================================================"); | |
System.out.println("OINK_ID: " + row.getUUID("oink_id")); | |
System.out.println("TIMESTAMP: " + row.getDate("dateOf(oink_id)")); | |
System.out.println("USER_ID: " + row.getString("user_id")); | |
System.out.println("BODY: " + row.getString("body")); | |
} | |
System.out.println("========================================================"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment