Class: Arrow::FileReader
- Inherits:
-
Object
- Object
- Arrow::FileReader
- Includes:
- Enumerable
- Defined in:
- lib/arrow/file-reader.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.open(input) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/arrow/file-reader.rb', line 23 def open(input) warn("#{self}.#{__method__}: use #{self}.new instead: #{caller(1, 1)[0]}") reader = open_raw(input) if block_given? yield(reader) else reader end end |
.open_raw ⇒ Object
22 |
# File 'lib/arrow/file-reader.rb', line 22 alias_method :open_raw, :open |
Instance Method Details
#each ⇒ Object
47 48 49 50 51 |
# File 'lib/arrow/file-reader.rb', line 47 def each n_record_batches.times do |i| yield(get_record_batch(i)) end end |