https://github.com/ueshin/docker
$ docker run -it -p 14040:4040 spark:1.1.0-rc4
import breeze.linalg.{Vector => BV, DenseVector => DBV} | |
import org.apache.spark.annotation.Experimental | |
import org.apache.spark.mllib.linalg.{Vector, DenseVector} | |
trait DistanceMeasure extends Function2[BV[Double], BV[Double], Double] with Serializable { | |
// each measure/metric defines for itself: | |
override def apply(v1: BV[Double], v2: BV[Double]): Double | |
// a catch-all overloading of "()" for spark vectors | |
// can also be overridden on a per-class basis, if it is advantageous |
https://github.com/ueshin/docker
$ docker run -it -p 14040:4040 spark:1.1.0-rc4
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.