An Approach for Efficient Querying
- f Large Relational Datasets with
OCL-based Languages
Dimitrios S. Kolovos Ran Wei Konstantinos Barmpis
{dimitris.kolovos, rw542, kb634}@york.ac.uk
XM'13 Miami 29/09/2013
of Large Relational Datasets with OCL-based Languages Dimitrios S. - - PowerPoint PPT Presentation
An Approach for Efficient Querying of Large Relational Datasets with OCL-based Languages Dimitrios S. Kolovos Ran Wei Konstantinos Barmpis {dimitris.kolovos, rw542, kb634}@york.ac.uk 29/09/2013 XM'13 Miami Motivation Data used in MDE
{dimitris.kolovos, rw542, kb634}@york.ac.uk
XM'13 Miami 29/09/2013
2 / 26
29/09/2013 XM'13 Miami
3 / 26
29/09/2013 XM'13 Miami
4 / 26
29/09/2013 XM'13 Miami
M2T M2M MV
5 / 26
29/09/2013 XM'13 Miami
M2T M2M MV
6 / 26
29/09/2013 XM'13 Miami
M2T M2M MV
7 / 26
29/09/2013 XM'13 Miami
M2T M2M MV
8 / 26
29/09/2013 XM'13 Miami
9 / 26
29/09/2013 XM'13 Miami
10 / 26
29/09/2013 XM'13 Miami
11 / 26
29/09/2013 XM'13 Miami
12 / 26
29/09/2013 XM'13 Miami
13 / 26
29/09/2013 XM'13 Miami
14 / 26
29/09/2013 XM'13 Miami
15 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
16 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
17 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
18 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
19 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
20 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg()
21 / 26
29/09/2013 XM'13 Miami
Calculate the average delay of flights flying from JFK to LAX on Sundays:
Flight.allInstances .select(f | f.origin=“LAX”) .select(f | f.dest=“JFK” and f.dayOfWeek=1) .collect(f | f.delay) .avg() select avg(delay) from Flight where (origin=“LAX”) and (dest=“JFK” and dayOfWeek=1)
22 / 26
29/09/2013 XM'13 Miami
23 / 26
29/09/2013 XM'13 Miami
M2T M2M MV
24 / 26
29/09/2013 XM'13 Miami
25 / 26
29/09/2013 XM'13 Miami
26 / 26
29/09/2013 XM'13 Miami