Module: Arrow::SymbolValuesAppendable

Included in:
BinaryDictionaryArrayBuilder, StringDictionaryArrayBuilder
Defined in:
lib/arrow/symbol-values-appendable.rb

Instance Method Summary collapse

Instance Method Details

#append_values(values, is_valids = nil) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/arrow/symbol-values-appendable.rb', line 20

def append_values(values, is_valids=nil)
  builder = create_values_array_builder
  values = values.collect do |value|
    case value
    when Symbol
      value.to_s
    else
      value
    end
  end
  builder.append_values(values, is_valids)
  append_array(builder.finish)
end