Weitere ähnliche Inhalte Ähnlich wie NoSQL War Stories preso: Hadoop and Neo4j for networks Ähnlich wie NoSQL War Stories preso: Hadoop and Neo4j for networks (20) Kürzlich hochgeladen (20) NoSQL War Stories preso: Hadoop and Neo4j for networks4. [head]
GlobHfs[/Users/friso/Downloads/bview/alltxt.txt]
[{14}:'proto', 'time', 'type', 'peerip', 'peeras', 'prefix', 'path', 'origin', 'nexthop', 'localpref', 'MED', 'community', 'AAGG', 'aggregator'] [{14}:'proto',
[{14}:'proto', 'time', 'type', 'peerip', 'peeras', 'prefix', 'path', 'origin', 'nexthop', 'localpref', 'MED', 'community', 'AAGG', 'aggregator'] [{14}:'proto',
Each('nodes')[PathToNodes[decl:'id', 'name']]
[{2}:'id', 'name']
Each('edges')[PathToEdges[decl:'from', 'to', 'updatecount']]
[{2}:'id', 'name']
[{3}:'from', 'to', 'updatecount']
Each('nodes')[FilterPartialDuplicates[decl:'id', 'name']]
[{3}:'from', 'to', 'updatecount']
[{2}:'id', 'name']
GroupBy('edges')[by:['from', 'to']]
[{2}:'id', 'name']
edges[{2}:'from', 'to']
GroupBy('nodes')[by:['id']]
[{3}:'from', 'to', 'updatecount']
nodes[{1}:'id']
Every('edges')[Sum[decl:'updatecount'][args:1]]
[{2}:'id', 'name']
[{3}:'from', 'to', 'updatecount']
Every('nodes')[First[decl:'id', 'name']]
[{3}:'from', 'to', 'updatecount']
[{2}:'id', 'name']
Hfs['TextDelimited[['from', 'to', 'updatecount']]']['/tmp/edges']']
[{2}:'id', 'name']
[{3}:'from', 'to', 'updatecount']
Hfs['TextDelimited[['id', 'name']]']['/tmp/nodes']']
[{3}:'from', 'to', 'updatecount']
[{2}:'id', 'name']
[{2}:'id', 'name']
[tail]
13. • No SQL was used throughout the entire codebase
• (Even though it was tempting to use Hive at one point)
• You can find code here: https://github.com/friso/graphs
• You can find me on Twitter here: @fzk
• You can find me on e-mail here: fvanvollenhoven@xebia.com