Class: ArrowFormat::Float64Type

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

Instance Attribute Summary

Attributes inherited from FloatingPointType

#precision

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FloatingPointType

#to_flatbuffers

Methods inherited from Type

#to_s

Constructor Details

#initializeFloat64Type

Returns a new instance of Float64Type.



327
328
329
# File 'lib/arrow-format/type.rb', line 327

def initialize
  super(:double)
end

Class Method Details

.singletonObject



322
323
324
# File 'lib/arrow-format/type.rb', line 322

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



335
336
337
# File 'lib/arrow-format/type.rb', line 335

def buffer_type
  :f64
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



339
340
341
# File 'lib/arrow-format/type.rb', line 339

def build_array(size, validity_buffer, values_buffer)
  Float64Array.new(size, validity_buffer, values_buffer)
end

#nameObject



331
332
333
# File 'lib/arrow-format/type.rb', line 331

def name
  "Float64"
end