Skip to content

Instantly share code, notes, and snippets.

@josep2
Created January 1, 2017 21:34
Show Gist options
  • Save josep2/6f8f1ecb9ae8a29db0d954d7ccf6c120 to your computer and use it in GitHub Desktop.
Save josep2/6f8f1ecb9ae8a29db0d954d7ccf6c120 to your computer and use it in GitHub Desktop.
// borrowed from: https://developer.couchbase.com/documentation/server/4.5/connectors/spark-2.0/working-with-rdds.html
import com.couchbase.spark._
sc
.couchbaseGet[JsonDocument](Seq("airline_10123", "airline_10748"))
.collect()
.foreach(println)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment