Sha256: 5d92e88f5e5c352636a5b3c1875889a91c42a63ef1dd78194e6632ed436987c0

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

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

require 'cascading'
require 'samples/cascading'

cascade 'copy' do
  flow 'copy' do
    source 'input', tap('http://www.census.gov/genealogy/names/dist.all.last')

    assembly 'input' do
      rename 'line' => 'value'
      reject 'value:string.indexOf("R") == -1'
    end

    sink 'input', tap('output/copy', :sink_mode => :replace)
  end
end.complete(sample_properties)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cascading.jruby-0.0.4 samples/copy.rb