DataStax Java Driver for Apache Cassandra™ Quickstart

Submitted by gustavo on June 29, 2020
Blurb
Learn how to insert, retrieve, and delete data with the DataStax Java Driver for Apache Cassandra™.
Katacoda ID
datastax/courses/cassandra-try-it-out/try-java-driver
Programming Language
Java
Contributors
Category
DS Driver
Body

The Datastax Java Driver for Apache Cassandra™ is a modern, feature-rich and highly tunable Java client library for Apache Cassandra® (2.1+) and DataStax Enterprise (4.7+), and DataStax Astra, using exclusively Cassandra’s binary protocol and Cassandra Query Language (CQL) v3.

In this scenario, you will:

  • Connect to an Apache Cassandra™ instance with the DataStax Java driver
  • Use the driver to execute CQL statements against Apache Cassandra™ that do the following:
    • Create the a keyspace and table programmatically
    • Insert a user into a table
    • Select that user back out
    • Update the user's email
    • Delete the user from the table
  • Process CQL query results programmatically
Difficulty
Beginner
Time to complete
5-10