Cascalog Traps对其他功能的线程是多少?

时间:2013-09-30 15:57:11

标签: clojure cascalog

我想知道使用以下示例将cascalog陷阱缩小了多远。

(defn -main
 "Good ole main boilerplate"
 [people-path trap-path output-path]
 (?- (hfs-textline output-path)
     (people-query (hfs-textline trap-path)
                   (hfs-textline people-path))))

(defn people-query
  "The people query!"
  [trap-path people-path]
  (<- [?first-name ?last-name ?daily-visits]
      (:trap trap)
      (some-generic-parsing-to-tuple-fn people-path :> ?fname ?lname)
      (c/count ?daily-visits)))

如果在人员查询范围内调用some-generic-parsing-to-tuple-fn(包含(:trap trap),则子查询也可以访问该陷阱,或者some-generic-parsing-to-tuple-fn是否也包含陷阱信息即

 (some-generic-parsing-to-tuple-fn trap-path people-path :> ?fname ?lname)

TL; DR我需要在Cascalog查询中传递陷阱,以允许嵌套查询访问陷阱

0 个答案:

没有答案