Class: Arrow::UnionArrayBuilder

Inherits:
ArrayBuilder show all
Defined in:
lib/arrow/jruby/array-builder.rb,
lib/arrow/union-array-builder.rb

Constant Summary

Constants included from ArrayBuildable

ArrayBuildable::ValueVector

Instance Method Summary collapse

Methods inherited from ArrayBuilder

#append, #append_nulls, #append_value, #build, build, buildable?, #finish, #initialize

Methods included from ArrayBuildable

#buildable?

Constructor Details

This class inherits a constructor from Arrow::ArrayBuilder

Instance Method Details

#append_child(builder, filed_name = nil) ⇒ Object

Raises:

  • (NotImplementedError)


104
105
106
# File 'lib/arrow/jruby/array-builder.rb', line 104

def append_child(child, filed_name)
  raise NotImplementedError
end

#append_child_rawObject

Raises:

  • (NotImplementedError)


36
37
38
# File 'lib/arrow/union-array-builder.rb', line 36

def append_child(child, filed_name)
  raise NotImplementedError
end

#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