Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 14 lines (11 sloc) 0.246 kB
832f4c8 @rjurney I have avro storage of mail pairs working.
authored
1 #!/usr/bin/env ruby
2
3 require 'rubygems'
4 require 'avro'
6b579f0 @rjurney Added examples for ruby and python avro.
authored
5 require 'pp'
832f4c8 @rjurney I have avro storage of mail pairs working.
authored
6
7 # read all data from avro file
8 puts ARGV[0]
9 file = File.open(ARGV[0], 'r+')
10 dr = Avro::DataFile::Reader.new(file, Avro::IO::DatumReader.new)
11 dr.each do |record|
6b579f0 @rjurney Added examples for ruby and python avro.
authored
12 pp record
832f4c8 @rjurney I have avro storage of mail pairs working.
authored
13 end
Something went wrong with that request. Please try again.