Class: Arrow::ChunkedArray
- Inherits:
-
Object
- Object
- Arrow::ChunkedArray
- Defined in:
- lib/arrow-numo-narray/to-narray.rb
Instance Method Summary collapse
Instance Method Details
#to_narray ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/arrow-numo-narray/to-narray.rb', line 89 def to_narray unless n_nulls.zero? = "can't convert #{self.class} that has null values to NArray" raise ArrowNumoNArray::UnconvertibleError, end narray = value_data_type.narray_class.new(length) data = "" chunks.each do |chunk| data << chunk.buffer.data.to_s end narray.store_binary(data) narray end |