Sha256: 01457a8f0399d55eb0890717f001d43985023a30d79ce537f955d01aa9ea55a0
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
#! /usr/bin/env jruby $: << File.join(File.dirname(__FILE__), '..', 'lib') require 'cascading' require 'samples/cascading' cascade 'branch' do flow 'branch' do source 'input', tap('samples/data/data2.txt') assembly 'input' do split 'line', ['name', 'score1', 'score2', 'id'], :pattern => /[.,]*\s+/ branch 'branch1' do group_by 'score1' do count end end branch 'branch2' do group_by 'score2' do count end end end sink 'branch1', tap('output/branch1', :sink_mode => :replace) sink 'branch2', tap('output/branch2', :sink_mode => :replace) end end.complete(sample_properties)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cascading.jruby-0.0.6 | samples/branch.rb |
cascading.jruby-0.0.5 | samples/branch.rb |
cascading.jruby-0.0.4 | samples/branch.rb |