Class: ArrowFormat::YearMonthIntervalType

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

Instance Attribute Summary

Attributes inherited from IntervalType

#unit

Instance Method Summary collapse

Methods inherited from IntervalType

singleton, #to_flatbuffers

Methods inherited from Type

#to_s

Constructor Details

#initializeYearMonthIntervalType

Returns a new instance of YearMonthIntervalType.



522
523
524
# File 'lib/arrow-format/type.rb', line 522

def initialize
  super(:year_month)
end

Instance Method Details

#buffer_typeObject



530
531
532
# File 'lib/arrow-format/type.rb', line 530

def buffer_type
  :s32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



534
535
536
# File 'lib/arrow-format/type.rb', line 534

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

#nameObject



526
527
528
# File 'lib/arrow-format/type.rb', line 526

def name
  "YearMonthInterval"
end