Skip to content

Instantly share code, notes, and snippets.

View GregBestland's full-sized avatar

Greg Bestland GregBestland

View GitHub Profile
  1. Download the preview version of the Java DataStax Driver from <the EAP portal>.
  2. Extract the tarball.
  3. To install the packages to mavencd to the directory, then run ./install_maven.sh.
  4. Alternately you can directly import the requisite jars from the tarball.
  5. Download a DS On Demand config file from <DSOD admin portal>.

Connect and query example

import com.datastax.dse.driver.api.core.DseSession;
import com.datastax.dse.driver.api.core.DseSessionBuilder;
/*
* Copyright (C) 2012-2017 DataStax Inc.
*
* This software can be used solely with DataStax Enterprise. Please consult the license at
* http://www.datastax.com/terms/datastax-dse-driver-license-terms
*/
package com.datastax.dse.graph.internal.utils;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;