SlideShare uma empresa Scribd logo
1 de 42
It‘s For Data Transformation
M. Sc. Johannes Schildgen
2015-07-08
schildgen@cs.uni-kl.de
… Is Not A Query Language!
on Wide-Column Stores
2
"A DBA walks into a
NoSQL bar, but turns
and leaves because he
couldn't find a table"
3
Column Families
RowId info children
4
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
Peter, 1965,
IBM, 70k
Lisa, 1997,
BSIT
Column Families
€10 €5
€0€7
5
HBase API
put ‘pers‘, ‘Carl‘,
‘info:born‘, ‘1982‘
put ‘pers‘, ‘Carl‘,
‘info:school‘, ‘BSIT‘
put ‘pers‘, ‘Carl‘,
‘info:school‘, ‘BUIT‘
get ‘pers‘, ‘Carl‘
6
Jaspersoft HBase QL
{
"tableName": "pers",
"deserializerClass": "com.jaspersoft…DefaultDeserializer",
"filter": {
"SingleColumnValueFilter": {
"family": „info",
"qualifier": „school",
"compareOp": "EQUAL",
"comparator": { "SubstringComparator": { "substr":
„BSIT" } }
}
}
}
𝛔 𝐬𝐜𝐡𝐨𝐨𝐥=′ 𝐁𝐒𝐈𝐓′ 𝐩𝐞𝐫𝐬
http://community.jaspersoft.com/wiki/jaspersoft-hbase-query-language
7
Phoenix
SELECT * FROM pers WHERE school = ‘BSIT‘
𝛔 𝐬𝐜𝐡𝐨𝐨𝐥=′ 𝐁𝐒𝐈𝐓′ 𝐩𝐞𝐫𝐬
„Parent of
each person?“
https://github.com/forcedotcom/phoenix
8
9
Input Table Output Table
10
Column
RowID Value
Input Cell Output Cell
Column
RowID Value
11
_c
_r _v
_c
_r _v
Input Cell Output Cell
12
_c
born
_r
Lisa
_v
1997
_c
born
_r
Lisa
_v
1997
Input Cell Output Cell
𝐩𝐞𝐫𝐬
OUT._r <- IN._r,
OUT.born <- IN.born;
𝝅 𝒃𝒐𝒓𝒏
13
_c
born
_r
Lisa
_v
1997
_c
born
_r
Lisa
_v
1997
Input Cell Output Cell
𝐩𝐞𝐫𝐬
OUT._r <- IN._r,
OUT.born <- IN.born,
OUT.school <- IN.school;
𝝅 𝒃𝒐𝒓𝒏,𝒔𝒄𝒉𝒐𝒐𝒍
14
_c
born
_r
Lisa
_v
1997
_c
born
_r
Lisa
_v
1997
Input Cell Output Cell
𝐩𝐞𝐫𝐬
OUT._r <- IN._r,
OUT.$(IN._c) <- IN._v;
𝛔 𝐬𝐜𝐡𝐨𝐨𝐥=′ 𝐁𝐒𝐈𝐓′
15
_c
born
_r
Lisa
_v
1997
_c
born
_r
Lisa
_v
1997
Input Cell Output Cell
IN-FILTER: school=‘BSIT‘,
OUT._r <- IN._r,
OUT.$(IN._c) <- IN._v;
row predicate
𝐩𝐞𝐫𝐬𝛔 𝐬𝐜𝐡𝐨𝐨𝐥=′ 𝐁𝐒𝐈𝐓′
16
That was:
Selection and Projection
17
Now:
Grouping
18
_c
cmpny
_r
Peter
_v
IBM
_c
salsum
_r
IBM
_v
645k
Input Cell Output Cell
Salary sum of
each company.
OUT._r <- IN.cmpny,
OUT.salsum <- SUM(IN.salary):
19
RowId info
Eve
Carl
Julia
Lisa
OUT._r <- IN.cmpny,
OUT.salsum <- SUM(IN.salary):
born cmpny salary
1965 IBM 70k
born cmpny job
1966 IBM intern
born cmpny salary
1967 IBM 80k
born school salary
1997 BSIT 1k
salsum
IBM 70k
salsum
IBM 80k
salsum
IBM 150k
20
Advanced Transformations:
More Filters
21
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
Peter, 1965,
IBM, 70k
Lisa, 1997,
BSIT
€10 €5
€0€7
22
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
OUT._r <- IN._r,
OUT.$(IN._c) <- IN._v;
23
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
IN-FILTER: COL_COUNT(children)>0
OUT._r <- IN._r,
OUT.$(IN._c) <- IN._v;
24
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
IN-FILTER: COL_COUNT(children)>0
OUT._r <- IN._r,
OUT.$(IN.children._c) <- IN._v;
25
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
IN-FILTER: COL_COUNT(children)>0
OUT._r <- IN._r,
OUT.$(IN.children._c?(@>5))
<- IN._v;
cell predicate
26
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
IN-FILTER: COL_COUNT(children)>0
OUT._r <- IN._r,
OUT.$(IN.children._c?(!Carl))
<- IN._v;
cell predicate
27
NotaQL Transformation Platform:
MapReduce
28
map(rowId, row)
row violates
row pred.?
has more
columns?
no
cell violates
cell pred.?
yes
map IN.{_r,_c,_v}, fetched columns
and constants to r,c and v
no
emit((r, c), v)
no
yes
Stop
yes
RowId info
Peter born cmpny salary
1965 IBM 70k
salsum
IBM 70k
((IBM, salsum), 70k)
29
reduce((r,c), {v})
put(r, c, aggregateAll(v))
Stop
((IBM, salsum), {70k, 80k, 10k})
((IBM, salsum), 160k)
30
Advanced Transformations:
Graph Algorithms
31
RowId info children
Peter
Lisa
born cmpny salary
1965 IBM 70k
Lisa Carl Susi Toni
€5 €0 €10 €7
born school
1997 BSIT
Peter, 1965,
IBM, 70k
Lisa, 1997,
BSIT
€10 €5
€0€7
32
_c
Lisa
_r
Peter
_c
€5
_c
Peter
_r
Lisa
_v
€5
Input Cell Output Cell
„Parent of each
person?“
OUT._r <- IN.children._c,
OUT.$(IN._r) <- IN._v;
33
RowId info links
Wikipedia
Twitter
Google
crawled pr
17:35 0.333
Twitter Google
- -
Google
-
Wikipedia
-
crawled pr
17:36 0.333
crawled pr
17:36 0.333
OUT._r <- IN.links._c,
OUT.incoming.$(IN._r) <- IN._v;
34
RowId info links incoming
Wikipedia
Twitter
Google
crawled pr
17:35 0.333
Twitter Google
- -
Google
-
Wikipedia
-
crawled pr
17:36 0.333
crawled pr
17:36 0.333
OUT._r <- IN.links._c,
OUT.incoming.$(IN._r) <- IN._v;
Twitter Wikipedia
- -
Google
-
Wikipedia
-
Reverting
the graph
35
RowId info links incoming
Wikipedia
Twitter
Google
crawled pr
17:35 0.333
Twitter Google
- -
Google
-
Wikipedia
-
crawled pr
17:36 0.333
crawled pr
17:36 0.333
OUT._r <- IN.links._c,
OUT.info.pr <-
SUM(IN.pr/COL_COUNT(links));
Twitter Wikipedia
- -
Google
-
Wikipedia
-
36
RowId info links incoming
Wikipedia
Twitter
Google
crawled pr
17:35 0.333
Twitter Google
- -
Google
-
Wikipedia
-
crawled pr
17:36 0.167
crawled pr
17:36 0.5
OUT._r <- IN.links._c,
OUT.info.pr <-
SUM(IN.pr/COL_COUNT(links));
Twitter Wikipedia
- -
Google
-
Wikipedia
-
PageRank
37
Advanced Transformations:
Text Processing
38
RowId info
Wikipedia
Twitter
crawled pr body
17:35 0.333 all information can be found here
OUT._r <- IN._r,
OUT.words
<- COUNT(IN.body.split(‘ ‘));
crawled pr body
17:36 0.167 click here for more information
39
RowId info
Wikipedia
Twitter
crawled pr body words
17:35 0.333 all information can be found here 6
OUT._r <- IN._r,
OUT.words
<- COUNT(IN.body.split(‘ ‘));
crawled pr body
17:36 0.167 click here for more information 5
Word
Count
40
RowId info
Wikipedia
Twitter
crawled pr body words
17:35 0.333 all information can be found here 6
OUT._r <- IN.body.split(‘ ‘),
OUT.$(IN._r) <- COUNT(*);
crawled pr body
17:36 0.167 click here for more information 5
RowId info
here
…
Wikipedia Twitter
1 1
Term Index
41
Conclusion
• Selection, Projection
• Grouping, Aggregation
• Schema-Flexible
• Horizontal Aggregation
• Metadata↔Data
• Graph Processing
• Text Processing
≠SQL
42
Thank you!

Mais conteúdo relacionado

Último

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

NotaQL Is Not a Query Language! It's for Data Transformation on Wide-Column Stores