Class: Arrow::Decimal256ArrayBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow/decimal256-array-builder.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(data_type, values) ⇒ Object

Since:

  • 3.0.0



22
23
24
25
# File 'lib/arrow/decimal256-array-builder.rb', line 22

def build(data_type, values)
  builder = new(data_type)
  builder.build(values)
end

Instance Method Details

#append_value(value) ⇒ Object

Since:

  • 3.0.0



30
31
32
# File 'lib/arrow/decimal256-array-builder.rb', line 30

def append_value(value)
  append_value_raw(normalize_value(value))
end

#append_value_rawObject



28
# File 'lib/arrow/decimal256-array-builder.rb', line 28

alias_method :append_value_raw, :append_value

#append_values(values, is_valids = nil) ⇒ Object

Since:

  • 3.0.0



36
37
38
39
40
41
42
43
44
45
# File 'lib/arrow/decimal256-array-builder.rb', line 36

def append_values(values, is_valids=nil)
  if values.is_a?(::Array)
    values = values.collect do |value|
      normalize_value(value)
    end
    append_values_raw(values, is_valids)
  else
    append_values_packed(values, is_valids)
  end
end

#append_values_rawObject



34
# File 'lib/arrow/decimal256-array-builder.rb', line 34

alias_method :append_values_raw, :append_values