en:site:recherche:logiciels:sparqlwithspark:chain6
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:site:recherche:logiciels:sparqlwithspark:chain6 [13/09/2016 23:01] – created hubert | en:site:recherche:logiciels:sparqlwithspark:chain6 [16/09/2016 23:11] (current) – [Chain6 query plans] hubert | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
====== Chain6 query plans ====== | ====== Chain6 query plans ====== | ||
The plans produced by each method are: | The plans produced by each method are: | ||
* SPARQL RDD: | * SPARQL RDD: | ||
- | < | + | < |
+ | val d1 = triples.filter{case(s, | ||
+ | val d2 = triples.filter{case(s, | ||
+ | val d3 = triples.filter{case(s, | ||
+ | val d4 = triples.filter{case(s, | ||
+ | val d5 = triples.filter{case(s, | ||
+ | val d6 = triples.filter{case(s, | ||
+ | val j1 = d1.join(d2).map{case(x2, | ||
+ | val j2 = j1.join(d3).map{case(x3, | ||
+ | val j3 = j2.join(d4).map{case(x4, | ||
+ | val j4 = j3.join(d5).map{case(x5, | ||
+ | val j5 = j4.join(d6).map{case(x6, | ||
+ | j5.count | ||
</ | </ | ||
* SPARQL DF: | * SPARQL DF: | ||
- | < | + | < |
+ | val t1 = df.where(s" | ||
+ | val t2 = df.where(s" | ||
+ | val t3 = df.where(s" | ||
+ | val t4 = df.where(s" | ||
+ | val t5 = df.where(s" | ||
+ | val t6 = df.where(s" | ||
+ | val res = t1.join(t2, | ||
+ | res.count | ||
</ | </ | ||
* SPARQL Hybrid DF: | * SPARQL Hybrid DF: | ||
- | < | + | < |
+ | val subg = df.where(s" | ||
+ | subg.persist | ||
+ | subg.count | ||
+ | val st1 = subg.where(s" | ||
+ | val st2 = subg.where(s" | ||
+ | val st3 = subg.where(s" | ||
+ | val st4 = subg.where(s" | ||
+ | val st5 = subg.where(s" | ||
+ | val st6 = subg.where(s" | ||
+ | val res = st1.join(st2, | ||
+ | res.count | ||
</ | </ | ||
- | Go to [[en: | + | Go to [[en: |
en/site/recherche/logiciels/sparqlwithspark/chain6.1473800469.txt.gz · Last modified: by hubert