Bug 422775 - Support "run once" query evaluation over non well-behaving derived features
Summary: Support "run once" query evaluation over non well-behaving derived features
Status: RESOLVED FIXED
Alias: None
Product: Viatra
Classification: Modeling
Component: Query (show other bugs)
Version: oldinquery   Edit
Hardware: PC Windows 8
: P3 normal
Target Milestone: ---   Edit
Assignee: Abel Hegedus CLA
QA Contact: Istvan Rath CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 10:22 EST by Abel Hegedus CLA
Modified: 2013-12-07 04:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abel Hegedus CLA 2013-11-28 10:22:09 EST
Incremental query evaluation is not possible for derived features that are not well-behaving (see http://wiki.eclipse.org/EMFIncQuery/UserDocumentation/Query_Based_Features#Well-behaving_structural_features).

However, the queries written in the EMF-IncQuery language could be evaluated in a run once way where the initial traversal uses the value of derived features and the set of matches is returned.
Comment 2 Abel Hegedus CLA 2013-12-05 09:52:07 EST
The implementation and examples are ported to the Xtext 2.3 branch as well.
Comment 3 Abel Hegedus CLA 2013-12-07 04:33:16 EST
The run-once support has been extended with automatic re-sampling of derived features, which means that the complete Rete network and base indices are not disposed between calls to getAllMatches. The automatic re-sampling is disabled by default and can be turned on and off through RunOnceQueryEngine.setAutomaticResampling(boolean).