Class: ArrowFormat::DayTimeIntervalType

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

#initializeDayTimeIntervalType

Returns a new instance of DayTimeIntervalType.



540
541
542
# File 'lib/arrow-format/type.rb', line 540

def initialize
  super(:day_time)
end

Instance Method Details

#buffer_typeObject



548
549
550
# File 'lib/arrow-format/type.rb', line 548

def buffer_type
  :s32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



552
553
554
# File 'lib/arrow-format/type.rb', line 552

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

#nameObject



544
545
546
# File 'lib/arrow-format/type.rb', line 544

def name
  "DayTimeInterval"
end