DEIB-GECO / GMQL

GMQL - GenoMetric Query Language
http://www.bioinformatics.deib.polimi.it/geco/
Apache License 2.0
18 stars 11 forks source link

Distinct BAG #66

Closed acanakoglu closed 7 years ago

acanakoglu commented 7 years ago

In some cases (e.g., when BAG is used in MAP), it would be useful to have all values reported by BAG, not only the distinct ones (which is useful in other cases, e.g., when BAG is used in EXTEND). Could you provide two versions of bag, exactly with the same functionality, but one named BAGD returning distinct values, and another named BAG returning all values?

akaitoua commented 7 years ago

BAGD support is added from the implementation. Notice that BAG implementation is the normal bag that sorts the items but does not perform distinct. Compiler support for BAGD is needed. @pp86

pp86 commented 7 years ago

What the compiler does is just to pass the function identifier dow to the implementation. Once the function is implemented there, it is enough.