Class: Arrow::Column
Instance Method Summary collapse
- #[](i) ⇒ Object
- #each(&block) ⇒ Object
- #null?(i) ⇒ Boolean
- #pack ⇒ Object
- #reverse_each(&block) ⇒ Object
- #valid?(i) ⇒ Boolean
Instance Method Details
#[](i) ⇒ Object
30 31 32 |
# File 'lib/arrow/column.rb', line 30 def [](i) data[i] end |
#each(&block) ⇒ Object
34 35 36 37 38 |
# File 'lib/arrow/column.rb', line 34 def each(&block) return to_enum(__method__) unless block_given? data.each(&block) end |
#null?(i) ⇒ Boolean
22 23 24 |
# File 'lib/arrow/column.rb', line 22 def null?(i) data.null?(i) end |
#pack ⇒ Object
46 47 48 |
# File 'lib/arrow/column.rb', line 46 def pack self.class.new(field, data.pack) end |
#reverse_each(&block) ⇒ Object
40 41 42 43 44 |
# File 'lib/arrow/column.rb', line 40 def reverse_each(&block) return to_enum(__method__) unless block_given? data.reverse_each(&block) end |
#valid?(i) ⇒ Boolean
26 27 28 |
# File 'lib/arrow/column.rb', line 26 def valid?(i) data.valid?(i) end |