Class: ArrowFormat::Date32Type
- Inherits:
-
DateType
- Object
- Type
- PrimitiveType
- TemporalType
- DateType
- ArrowFormat::Date32Type
- Defined in:
- lib/arrow-format/type.rb
Instance Attribute Summary
Attributes inherited from DateType
Class Method Summary collapse
Instance Method Summary collapse
- #buffer_type ⇒ Object
- #build_array(size, validity_buffer, values_buffer) ⇒ Object
-
#initialize ⇒ Date32Type
constructor
A new instance of Date32Type.
- #name ⇒ Object
Methods inherited from DateType
Methods inherited from Type
Constructor Details
#initialize ⇒ Date32Type
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
.singleton ⇒ Object
363 364 365 |
# File 'lib/arrow-format/type.rb', line 363 def singleton @singleton ||= new end |
Instance Method Details
#buffer_type ⇒ Object
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 |
#name ⇒ Object
372 373 374 |
# File 'lib/arrow-format/type.rb', line 372 def name "Date32" end |