Class: ArrowFormat::NullArray
Instance Attribute Summary
Attributes inherited from Array
#offset, #size, #type, #validity_buffer
Instance Method Summary collapse
- #each_buffer ⇒ Object
-
#initialize(size) ⇒ NullArray
constructor
A new instance of NullArray.
- #n_nulls ⇒ Object
- #to_a ⇒ Object
Methods inherited from Array
#empty?, #null?, #slice, #valid?
Constructor Details
Instance Method Details
#each_buffer ⇒ Object
147 148 149 |
# File 'lib/arrow-format/array.rb', line 147 def each_buffer return to_enum(__method__) unless block_given? end |
#n_nulls ⇒ Object
151 152 153 |
# File 'lib/arrow-format/array.rb', line 151 def n_nulls @size end |
#to_a ⇒ Object
155 156 157 |
# File 'lib/arrow-format/array.rb', line 155 def to_a [nil] * @size end |