Class: ArrowFormat::Int32Type

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

Instance Attribute Summary

Attributes inherited from IntType

#bit_width

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IntType

#signed?, #to_flatbuffers

Methods inherited from Type

#to_s

Constructor Details

#initializeInt32Type

Returns a new instance of Int32Type.



193
194
195
# File 'lib/arrow-format/type.rb', line 193

def initialize
  super(32, true)
end

Class Method Details

.singletonObject



188
189
190
# File 'lib/arrow-format/type.rb', line 188

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



201
202
203
# File 'lib/arrow-format/type.rb', line 201

def buffer_type
  :s32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



205
206
207
# File 'lib/arrow-format/type.rb', line 205

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

#nameObject



197
198
199
# File 'lib/arrow-format/type.rb', line 197

def name
  "Int32"
end