Class: ArrowFormat::MonthDayNanoIntervalType

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

#initializeMonthDayNanoIntervalType

Returns a new instance of MonthDayNanoIntervalType.



558
559
560
# File 'lib/arrow-format/type.rb', line 558

def initialize
  super(:month_day_nano)
end

Instance Method Details

#buffer_typesObject



566
567
568
# File 'lib/arrow-format/type.rb', line 566

def buffer_types
  @buffer_types ||= [:s32, :s32, :s64]
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



570
571
572
573
574
575
# File 'lib/arrow-format/type.rb', line 570

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

#nameObject



562
563
564
# File 'lib/arrow-format/type.rb', line 562

def name
  "MonthDayNanoInterval"
end