Class: ArrowFlight::RecordBatchReader

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

Instance Method Summary collapse

Instance Method Details

#eachObject



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

def each
  return to_enum(__method__) unless block_given?

  loop do
    record_batch = read_next
    break if record_batch.nil?
    yield(record_batch)
  end
end