Sha256: 004a928032efe8474b9630cff0dbb40084dbdc25028861a140b72dc46f2708ee
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 Bytes
Contents
# puts "executing fixed_width.ctl" source :in, { :file => 'data/sax.xml', :parser => :sax }, { :write_trigger => 'people/person', :fields => { :first_name => 'people/person/first_name', :last_name => 'people/person/last_name', :ssn => 'people/person/social_security_number', :age => 'people/person[age]' } } transform :ssn, :sha1 transform(:ssn){ |v| v[0,24] } transform :age, :type, {:type => :number} destination :out, { :file => 'output/sax.out.txt' }, { :order => [:first_name, :last_name, :ssn, :age] }
Version data entries
6 entries across 6 versions & 4 rubygems