Class: ArrowFormat::Time32Type

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

Instance Attribute Summary

Attributes inherited from TimeType

#bit_width, #unit

Instance Method Summary collapse

Methods inherited from TimeType

#to_flatbuffers, #to_s

Methods inherited from Type

#to_s

Constructor Details

#initialize(unit) ⇒ Time32Type

Returns a new instance of Time32Type.



431
432
433
# File 'lib/arrow-format/type.rb', line 431

def initialize(unit)
  super(32, unit)
end

Instance Method Details

#buffer_typeObject



439
440
441
# File 'lib/arrow-format/type.rb', line 439

def buffer_type
  :s32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



443
444
445
# File 'lib/arrow-format/type.rb', line 443

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

#nameObject



435
436
437
# File 'lib/arrow-format/type.rb', line 435

def name
  "Time32"
end