-
-
Save charles-dyfis-net/73899d73914b4da15d3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn -export-Fn-getVal ^String [^clojure.lang.APersistentMap data, ^String key] (get data key)) | |
(defn -export-Fn-windowBatch ^Boolean [^long tsOld, ^long tsNew, ^double secondsPerBatch] | |
(let [old-batch (long (/ tsOld (* 1000 secondsPerBatch))) | |
new-batch (long (/ tsNew (* 1000 secondsPerBatch)))] | |
(boolean (not= old-batch new-batch)))) | |
(gen-class :main false | |
:name "boundsetter.miniepl.Fn" | |
:prefix "-export-Fn-" | |
:methods [#^{:static true} [getVal [clojure.lang.APersistentMap, String] String] | |
#^{:static true} [percentile ["[Ljava.lang.Double;", Double] Double] | |
#^{:static true} [windowBatch [long long double] Boolean]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment