-
-
Save sorenmacbeth/6e5207df3c22fc7db19e 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
(defmacro mk-property-tap [property-id property-name property-class] | |
`(let [md# (thrift-meta-data (str ~property-class "Value"))] | |
(for [f# (.keySet md#)] | |
(let [val-id# (.getThriftFieldId f#) | |
val-name# (.getFieldName f#) | |
fn-name# (symbol (str ~property-name "-" val-name# "-tap"))] | |
(defn fn-name# [source-dir#] | |
(let [tap# (split-data-tap source-dir# [~property-id val-id#])] | |
(<- [?id ?property ?pedigree] | |
(tap# _ ?data) | |
(expand-data ?data :> ?pedigree ?du) | |
(expand-property ?du :> ?id ?property)))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment