Skip to content

Instantly share code, notes, and snippets.

@robinkraft
Created March 1, 2012 19:41
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 robinkraft/1952544 to your computer and use it in GitHub Desktop.
Save robinkraft/1952544 to your computer and use it in GitHub Desktop.
Want to define a function at master node repl, have it accessible in query
(defn get-max
[v]
(apply max (flatten v)))
(let [src (hfs-seqfile "s3n://formaresults/finaloutput/*")]
(??<- [?count]
(src ?s-res ?mod-h ?mod-v ?s ?l ?prob-series)
(get-max ?prob-series :> ?max)
(>= ?max 0.5)
(c/count ?count)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment