Class: ArrowFormat::Time64Type

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

Returns a new instance of Time64Type.



449
450
451
# File 'lib/arrow-format/type.rb', line 449

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

Instance Method Details

#buffer_typeObject



457
458
459
# File 'lib/arrow-format/type.rb', line 457

def buffer_type
  :s64
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



461
462
463
# File 'lib/arrow-format/type.rb', line 461

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

#nameObject



453
454
455
# File 'lib/arrow-format/type.rb', line 453

def name
  "Time64"
end