Class: Arrow::UnionArrayBuilder
- Inherits:
-
Object
- Object
- Arrow::UnionArrayBuilder
- Defined in:
- lib/arrow/union-array-builder.rb
Instance Method Summary collapse
- #append_child(builder, filed_name = nil) ⇒ Object
- #append_child_raw ⇒ Object
- #append_values(values, is_valids = nil) ⇒ Object
Instance Method Details
#append_child(builder, filed_name = nil) ⇒ Object
37 38 39 40 |
# File 'lib/arrow/union-array-builder.rb', line 37 def append_child(builder, filed_name=nil) @child_infos = nil append_child_raw(builder, field_name) end |
#append_child_raw ⇒ Object
36 |
# File 'lib/arrow/union-array-builder.rb', line 36 alias_method :append_child_raw, :append_child |
#append_values(values, is_valids = nil) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/arrow/union-array-builder.rb', line 20 def append_values(values, is_valids=nil) if is_valids is_valids.each_with_index do |is_valid, i| if is_valid append_value(values[i]) else append_null end end else values.each do |value| append_value(value) end end end |