Class: Arrow::Decimal256ArrayBuilder
- Inherits:
-
Object
- Object
- Arrow::Decimal256ArrayBuilder
- Defined in:
- lib/arrow/decimal256-array-builder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #append_value(value) ⇒ Object
- #append_value_raw ⇒ Object
- #append_values(values, is_valids = nil) ⇒ Object
- #append_values_raw ⇒ Object
Class Method Details
.build(data_type, values) ⇒ Object
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
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_raw ⇒ Object
28 |
# File 'lib/arrow/decimal256-array-builder.rb', line 28 alias_method :append_value_raw, :append_value |
#append_values(values, is_valids = nil) ⇒ Object
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_raw ⇒ Object
34 |
# File 'lib/arrow/decimal256-array-builder.rb', line 34 alias_method :append_values_raw, :append_values |