Class: ArrowFormat::Float32Type
- Inherits:
-
FloatingPointType
- Object
- Type
- PrimitiveType
- NumberType
- FloatingPointType
- ArrowFormat::Float32Type
- Defined in:
- lib/arrow-format/type.rb
Instance Attribute Summary
Attributes inherited from FloatingPointType
Class Method Summary collapse
Instance Method Summary collapse
- #buffer_type ⇒ Object
- #build_array(size, validity_buffer, values_buffer) ⇒ Object
-
#initialize ⇒ Float32Type
constructor
A new instance of Float32Type.
- #name ⇒ Object
Methods inherited from FloatingPointType
Methods inherited from Type
Constructor Details
#initialize ⇒ Float32Type
Returns a new instance of Float32Type.
303 304 305 |
# File 'lib/arrow-format/type.rb', line 303 def initialize super(:single) end |
Class Method Details
.singleton ⇒ Object
298 299 300 |
# File 'lib/arrow-format/type.rb', line 298 def singleton @singleton ||= new end |
Instance Method Details
#buffer_type ⇒ Object
311 312 313 |
# File 'lib/arrow-format/type.rb', line 311 def buffer_type :f32 end |
#build_array(size, validity_buffer, values_buffer) ⇒ Object
315 316 317 |
# File 'lib/arrow-format/type.rb', line 315 def build_array(size, validity_buffer, values_buffer) Float32Array.new(size, validity_buffer, values_buffer) end |
#name ⇒ Object
307 308 309 |
# File 'lib/arrow-format/type.rb', line 307 def name "Float32" end |