|Re: @OrderBy using an Integer parameter [message #1764293 is a reply to message #1764282]
||Sat, 27 May 2017 18:29
| Zoltan Ujhelyi
Registered: July 2015
sorry for the confusion; in a general level, ordering match sets is not supported in VIATRA, mainly because it is very hard to provide an efficient way to maintain ordered match sets in an incremental pattern matcher. When you need ordered match sets, we generally recommend to get the _set_ of matches, and use a custom comparator to order them manually.
The @OrderBy annotation was only used for the Query Explorer that is used for debugging: it displays the match sets, and uses the annotation values to order it in the user interface. However, this issue is really misleading, and we should think about how to make it clear what can and what shouldn't be expected when using this annotation. To be honest, my first idea would be to simply deprecate this annotation.
Powered by FUDForum
. Page generated in 0.03042 seconds