Class: ArrowFormat::Decimal256Type

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) ⇒ Decimal256Type

Returns a new instance of Decimal256Type.



795
796
797
# File 'lib/arrow-format/type.rb', line 795

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

Instance Method Details

#build_array(size, validity_buffer, values_buffer) ⇒ Object



803
804
805
# File 'lib/arrow-format/type.rb', line 803

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

#nameObject



799
800
801
# File 'lib/arrow-format/type.rb', line 799

def name
  "Decimal256"
end