Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tomtau
Created September 5, 2013 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomtau/6451347 to your computer and use it in GitHub Desktop.
Save tomtau/6451347 to your computer and use it in GitHub Desktop.
Generated job using the old Matrix API
import com.twitter.scalding._
import com.twitter.scalding.mathematics.Matrix
class BenchOldJob(args : Args) extends Job(args) {
import Matrix._
val a0 = Tsv("/home/ttauber/scalding-bench/a0.tsv", ('x, 'y, 'v) )
.read.
toMatrix[Int,Int,Double]('x,'y,'v)
(a0 * a0 * a0 * a0 * a0 * a0 * a0 * a0).write( Tsv("/home/ttauber/scalding-bench/aold.tsv"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment