Class: ArrowFormat::Date32Type

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

#initializeDate32Type

Returns a new instance of Date32Type.



368
369
370
# File 'lib/arrow-format/type.rb', line 368

def initialize
  super(:day)
end

Class Method Details

.singletonObject



363
364
365
# File 'lib/arrow-format/type.rb', line 363

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



376
377
378
# File 'lib/arrow-format/type.rb', line 376

def buffer_type
  :s32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



380
381
382
# File 'lib/arrow-format/type.rb', line 380

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

#nameObject



372
373
374
# File 'lib/arrow-format/type.rb', line 372

def name
  "Date32"
end