Class: Arrow::SparseUnionArrayBuilder
- Inherits:
-
Object
- Object
- Arrow::SparseUnionArrayBuilder
- Defined in:
- lib/arrow/sparse-union-array-builder.rb
Instance Method Summary collapse
Instance Method Details
#append_value ⇒ Object #append_value(value) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/arrow/sparse-union-array-builder.rb', line 38 def append_value(value) if value.nil? append_null else key = value.keys[0] child_info = child_infos[key] append_value_raw(child_info[:id]) child_infos.each do |child_key, child_info| builder = child_info[:builder] if child_key == key builder.append(value.values[0]) else builder.append_null end end end end |
#append_value_raw ⇒ Object
20 |
# File 'lib/arrow/sparse-union-array-builder.rb', line 20 alias_method :append_value_raw, :append_value |