Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 246 Bytes
#!/usr/bin/env ruby
require 'rubygems'
require 'avro'
require 'pp'
# read all data from avro file
puts ARGV[0]
file = File.open(ARGV[0], 'r+')
dr = Avro::DataFile::Reader.new(file, Avro::IO::DatumReader.new)
dr.each do |record|
pp record
end