Sha256: cf4116bdbb4ff7b028ffbf23d740eba7cc3e3654bad24678ffb6af2a3a9de915

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

#! /usr/bin/env jruby
$: << File.join(File.dirname(__FILE__), '..', 'lib')

require 'cascading'
require 'samples/cascading'

cascade 'splitter' do
  flow 'splitter' do
    source 'input', tap('samples/data/data2.txt')

    assembly 'input' do
      split 'line', ['name', 'score1', 'score2', 'id'], :output => ['name', 'score1', 'score2', 'id']
      group_by 'score1' do
        count
      end
    end

    sink 'input', tap('output/splitter', :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/splitter.rb
cascading.jruby-0.0.5 samples/splitter.rb
cascading.jruby-0.0.4 samples/splitter.rb