Class: Arrow::Decimal128ArrayBuilder
- Inherits:
-
Object
- Object
- Arrow::Decimal128ArrayBuilder
- Defined in:
- lib/arrow/decimal128-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
21 22 23 24 |
# File 'lib/arrow/decimal128-array-builder.rb', line 21 def build(data_type, values) builder = new(data_type) builder.build(values) end |
Instance Method Details
#append_value(value) ⇒ Object
28 29 30 |
# File 'lib/arrow/decimal128-array-builder.rb', line 28 def append_value(value) append_value_raw(normalize_value(value)) end |
#append_value_raw ⇒ Object
27 |
# File 'lib/arrow/decimal128-array-builder.rb', line 27 alias_method :append_value_raw, :append_value |
#append_values(values, is_valids = nil) ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/arrow/decimal128-array-builder.rb', line 33 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
32 |
# File 'lib/arrow/decimal128-array-builder.rb', line 32 alias_method :append_values_raw, :append_values |