Skip to content
DataStax Java Driver for Apache Cassandra
Java Other
  1. Java 99.9%
  2. Other 0.1%
Branch: 4.x
Clone or download

Latest commit

olim7t Fix outdated defaults in OptionsMap
Also revisit the unit test: it was comparing just the keys, not the
values.
Latest commit d45744a Jun 13, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bom Upgrade shaded guava to 25.1-jre-graal-sub-1 Jun 5, 2020
changelog JAVA-2666: Document BOM and driver modules Jun 11, 2020
ci Enable Travis CI builds against OpenJDK 8 and 11 (#1168) Jan 7, 2019
core-shaded [maven-release-plugin] prepare for next development iteration Apr 28, 2020
core Fix outdated defaults in OptionsMap Jun 13, 2020
distribution [maven-release-plugin] prepare for next development iteration Apr 28, 2020
examples [maven-release-plugin] prepare for next development iteration Apr 28, 2020
faq JAVA-2412: Cover DDL query debouncing in FAQ and upgrade guide Sep 27, 2019
integration-tests Fix build failure when certain IT categories are skipped Jun 12, 2020
manual JAVA-2666: Document BOM and driver modules Jun 11, 2020
mapper-processor Follow up to JAVA-2792: Allow custom results in the mapper Jun 11, 2020
mapper-runtime Follow up to JAVA-2792: Allow custom results in the mapper Jun 11, 2020
query-builder [maven-release-plugin] prepare for next development iteration Apr 28, 2020
test-infra [maven-release-plugin] prepare for next development iteration Apr 28, 2020
upgrade_guide Mention LBP in upgrade guide Jan 14, 2020
.gitignore JAVA-1556: Publish Maven Bill Of Materials POM Feb 11, 2020
.travis.yml JAVA-2727: Also disable javadoc plugin for test phase Apr 6, 2020
CONTRIBUTING.md Clarify test rule usage in contribution guidelines Mar 5, 2020
Jenkinsfile JAVA-2729: Remove uses of "repomirror.datastax.lan" in Openstack images Apr 11, 2020
LICENSE JAVA-1763: Generate a binary tarball as part of the build process Jun 26, 2018
README.md JAVA-2675: Fix javadoc link in root readme Jun 5, 2020
docs.yaml Fix title and summary in docs.yaml Jan 14, 2020
install-snapshots.sh Fix install_snapshots.sh Apr 4, 2020
pom.xml JAVA-2803: Move Graal substitutions for protocol compression from cas… Jun 11, 2020
pre-commit.sh Remove `git stash` from pre-commit hook Apr 26, 2017

README.md

Datastax Java Driver for Apache Cassandra®

Maven Central

If you're reading this on github.com, please note that this is the readme for the development version and that some features described here might not yet have been released. You can find the documentation for latest version through DataStax Docs or via the release tags, e.g. 4.6.1.

A modern, feature-rich and highly tunable Java client library for Apache Cassandra® (2.1+) and DataStax Enterprise (4.7+), and DataStax Apollo, using exclusively Cassandra's binary protocol and Cassandra Query Language (CQL) v3.

Getting the driver

The driver artifacts are published in Maven central, under the group id com.datastax.oss; there are multiple modules, all prefixed with java-driver-.

<dependency>
  <groupId>com.datastax.oss</groupId>
  <artifactId>java-driver-core</artifactId>
  <version>${driver.version}</version>
</dependency>

<dependency>
  <groupId>com.datastax.oss</groupId>
  <artifactId>java-driver-query-builder</artifactId>
  <version>${driver.version}</version>
</dependency>

<dependency>
  <groupId>com.datastax.oss</groupId>
  <artifactId>java-driver-mapper-runtime</artifactId>
  <version>${driver.version}</version>
</dependency>

Note that the query builder is now published as a separate artifact, you'll need to add the dependency if you plan to use it.

Refer to each module's manual for more details (core, query builder, mapper).

Compatibility

The driver is compatible with Apache Cassandra® 2.1 and higher, DataStax Enterprise 4.7 and higher, and DataStax Apollo.

It requires Java 8 or higher.

Disclaimer: Some DataStax/DataStax Enterprise products might partially work on big-endian systems, but DataStax does not officially support these systems.

Migrating from previous versions

Java driver 4 is not binary compatible with previous versions. However, most of the concepts remain unchanged, and the new API will look very familiar to 2.x and 3.x users.

See the upgrade guide for details.

Useful links

License

© DataStax, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


DataStax is a registered trademark of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache Cassandra, Apache, Tomcat, Lucene, Solr, Hadoop, Spark, TinkerPop, and Cassandra are trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.

You can’t perform that action at this time.