Summary

In this chapter, we learned how to develop applications using the Java driver to communicate with Cassandra. Throughout the chapter, we studied the various classes that are used to create a connection with a Cassandra cluster and execute queries. We looked at a lot of helper methods that can be used to configure a Cassandra connection and query execution.

To begin with, we started by using the Cluster API to create a Cluster object, which is the entry point to the Cassandra cluster. We used methods to set the initial contact points to create a Cassandra cluster connection and return an instance of the Cluster object. We then proceeded with creating an instance of Session, which is used to execute queries. Executed queries return the ...

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.