Class: ArrowFormat::Date64Type

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

Instance Attribute Summary

Attributes inherited from DateType

#unit

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DateType

#to_flatbuffers

Methods inherited from Type

#to_s

Constructor Details

#initializeDate64Type

Returns a new instance of Date64Type.



392
393
394
# File 'lib/arrow-format/type.rb', line 392

def initialize
  super(:millisecond)
end

Class Method Details

.singletonObject



387
388
389
# File 'lib/arrow-format/type.rb', line 387

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



400
401
402
# File 'lib/arrow-format/type.rb', line 400

def buffer_type
  :s64
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



404
405
406
# File 'lib/arrow-format/type.rb', line 404

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

#nameObject



396
397
398
# File 'lib/arrow-format/type.rb', line 396

def name
  "Date64"
end