import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.Row;
import com.datastax.driver.core.Session;
public class SelectFromCassandra {
public static void main(String[] args) {
Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").build();
Session session = cluster.connect("demo");
ResultSet rs = session.execute("SELECT *FROM emp1 WHERE emp_id=500");
for (Row row : rs) {
System.out.println("emp_id = "+row.getInt("emp_id")+" name = "+row.getString("name"));
}
}
}
import com.datastax.driver.core.ResultSet;
import com.datastax.driver.core.Row;
import com.datastax.driver.core.Session;
public class SelectFromCassandra {
public static void main(String[] args) {
Cluster cluster = Cluster.builder().addContactPoint("127.0.0.1").build();
Session session = cluster.connect("demo");
ResultSet rs = session.execute("SELECT *FROM emp1 WHERE emp_id=500");
for (Row row : rs) {
System.out.println("emp_id = "+row.getInt("emp_id")+" name = "+row.getString("name"));
}
}
}
Hello Admin, thank you for enlightening us with your knowledge sharing.
ReplyDeleteRegards,
J2EE Training in Chennai|JAVA Training in Chennai
wow , nice info , very useful stuff
ReplyDeleteWeb designing course in chennai
We sharing about Cassandra using with java is really amazing information.I learning about more java technical information in these site.If become a learn for java with big data Professional Hadoop Training in Chennai. Nowadays many IT companies most of the opening for Hadoop Professional.
ReplyDeleteam learning some java techniques from your post.keep update your post..
ReplyDeleteSoftware Testing Training Institute in Chennai | No.1 Software Testing Training in Chennai | Software Testing Training in Velachery
ReplyDeleteKeep sharing such type of useful information
Best Software Training Institute in Chennai
| Best Software Training Institute in Velachery