samasri / omr

Eclipse OMR™ Cross platform components for building reliable, high performance language runtimes
http://www.eclipse.org/omr
Other
0 stars 2 forks source link

Get number of overrides in each hierarchy #29

Closed samasri closed 6 years ago

samasri commented 6 years ago

We need this information to write the paper. So I will be editing the hierarchy and adding this information as a field of the hierarchy CSV records. Hence, the hierarchy CSV will become: NumberOfOverrides;isExtensible;Hierarchy

samasri commented 6 years ago

Updated getSQL python to build Polymorphism class with hierarchyID b3d4619767cddba1035e1fc61068eff93b920430

samasri commented 6 years ago

Now Number of overrides can be obtained with this query:

select HierarchyID, count(*) as NbOfOverrides
FROM polymorphism as p
INNER JOIN Override as o1 on o1.baseClassID = p.ParentClassID and o1.overridingClassID = p.ChildClassID
GROUP BY HierarchyID;