TechnologyAugust 1, 2017

Introducing Java driver 4

Oliver Michallat
Oliver Michallat
Introducing Java driver 4
try (Cluster cluster =
    Cluster.builder().addContactPoint(new InetSocketAddress("127.0.0.1", 9042)).build()) {
  Session session = cluster.connect();
  ResultSet rs = session.execute("select release_version from system.local");
  Row row = rs.iterator().next();
  System.out.println(row.getString("release_version"));
}
<dependency>
  <groupId>com.datastax.oss</groupId>
  <artifactId>java-driver-parent</artifactId>
  <version>4.0.0-alpha1</version>
</dependency>
Discover more
ReleasesJavaDrivers
Share
JUMP TO SECTION

Next steps

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.