DataStax Java Driver for Apache Cassandra Examples

A collection of examples to demonstrate DataStax Java Driver for Apache Cassandra.

License

License

Categories

Categories

Cassandra Data Databases
GroupId

GroupId

com.datastax.cassandra
ArtifactId

ArtifactId

cassandra-driver-examples-parent
Last Version

Last Version

2.1.5
Release Date

Release Date

Type

Type

pom
Description

Description

DataStax Java Driver for Apache Cassandra Examples
A collection of examples to demonstrate DataStax Java Driver for Apache Cassandra.
Project URL

Project URL

https://github.com/datastax/java-driver
Source Code Management

Source Code Management

https://github.com/datastax/java-driver

Download cassandra-driver-examples-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.datastax.cassandra/cassandra-driver-examples-parent/ -->
<dependency>
    <groupId>com.datastax.cassandra</groupId>
    <artifactId>cassandra-driver-examples-parent</artifactId>
    <version>2.1.5</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.datastax.cassandra/cassandra-driver-examples-parent/
implementation 'com.datastax.cassandra:cassandra-driver-examples-parent:2.1.5'
// https://jarcasting.com/artifacts/com.datastax.cassandra/cassandra-driver-examples-parent/
implementation ("com.datastax.cassandra:cassandra-driver-examples-parent:2.1.5")
'com.datastax.cassandra:cassandra-driver-examples-parent:pom:2.1.5'
<dependency org="com.datastax.cassandra" name="cassandra-driver-examples-parent" rev="2.1.5">
  <artifact name="cassandra-driver-examples-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.datastax.cassandra', module='cassandra-driver-examples-parent', version='2.1.5')
)
libraryDependencies += "com.datastax.cassandra" % "cassandra-driver-examples-parent" % "2.1.5"
[com.datastax.cassandra/cassandra-driver-examples-parent "2.1.5"]

Dependencies

test (2)

Group / Artifact Type Version
log4j : log4j jar 1.2.17
org.slf4j : slf4j-log4j12 jar 1.7.6

Project Modules

  • stress
  • osgi

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.9.0.

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.

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 Astra.

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.

Connecting to DataStax Astra

The driver comes with built-in support for Astra, DataStax's cloud-native Cassandra-as-a-service offering. See the dedicated manual page for more details.

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.

com.datastax.cassandra

DataStax

Versions

Version
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.1.0-rc1
2.1.0-beta1
2.0.9.2
2.0.9.1
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc3
2.0.0-rc2
2.0.0-rc1
2.0.0-beta2
2.0.0-beta1
1.0.8
1.0.7
1.0.6-dse
1.0.6
1.0.5-dse
1.0.5
1.0.4-dse
1.0.4
1.0.3-dse
1.0.3
1.0.2-dse2
1.0.2-dse
1.0.2
1.0.1-dse
1.0.1
1.0.0
1.0.0-rc1
1.0.0-beta2
1.0.0-beta1