Class: ArrowFormat::Decimal128Type

Inherits:
DecimalType show all
Defined in:
lib/arrow-format/type.rb

Instance Attribute Summary

Attributes inherited from DecimalType

#precision, #scale

Attributes inherited from FixedSizeBinaryType

#byte_width

Instance Method Summary collapse

Methods inherited from DecimalType

#to_flatbuffers, #to_s

Methods inherited from FixedSizeBinaryType

#to_flatbuffers, #to_s

Methods inherited from Type

#to_s

Constructor Details

#initialize(precision, scale) ⇒ Decimal128Type

Returns a new instance of Decimal128Type.



781
782
783
# File 'lib/arrow-format/type.rb', line 781

def initialize(precision, scale)
  super(16, precision, scale)
end

Instance Method Details

#build_array(size, validity_buffer, values_buffer) ⇒ Object



789
790
791
# File 'lib/arrow-format/type.rb', line 789

def build_array(size, validity_buffer, values_buffer)
  Decimal128Array.new(self, size, validity_buffer, values_buffer)
end

#nameObject



785
786
787
# File 'lib/arrow-format/type.rb', line 785

def name
  "Decimal128"
end