Class: Arrow::RecordBatchFileReader

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/arrow/record-batch-file-reader.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



22
23
24
25
26
27
28
# File 'lib/arrow/record-batch-file-reader.rb', line 22

def each
  return to_enum(__method__) {n_record_batches} unless block_given?

  n_record_batches.times do |i|
    yield(get_record_batch(i))
  end
end