Class: ArrowFormat::Time32Type
- Inherits:
-
TimeType
- Object
- Type
- PrimitiveType
- TemporalType
- TimeType
- ArrowFormat::Time32Type
- Defined in:
- lib/arrow-format/type.rb
Instance Attribute Summary
Attributes inherited from TimeType
Instance Method Summary collapse
- #buffer_type ⇒ Object
- #build_array(size, validity_buffer, values_buffer) ⇒ Object
-
#initialize(unit) ⇒ Time32Type
constructor
A new instance of Time32Type.
- #name ⇒ Object
Methods inherited from TimeType
Methods inherited from Type
Constructor Details
#initialize(unit) ⇒ Time32Type
Returns a new instance of Time32Type.
431 432 433 |
# File 'lib/arrow-format/type.rb', line 431 def initialize(unit) super(32, unit) end |
Instance Method Details
#buffer_type ⇒ Object
439 440 441 |
# File 'lib/arrow-format/type.rb', line 439 def buffer_type :s32 end |
#build_array(size, validity_buffer, values_buffer) ⇒ Object
443 444 445 |
# File 'lib/arrow-format/type.rb', line 443 def build_array(size, validity_buffer, values_buffer) Time32Array.new(self, size, validity_buffer, values_buffer) end |
#name ⇒ Object
435 436 437 |
# File 'lib/arrow-format/type.rb', line 435 def name "Time32" end |