Class: ArrowFormat::UInt32Type

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

#initializeUInt32Type

Returns a new instance of UInt32Type.



217
218
219
# File 'lib/arrow-format/type.rb', line 217

def initialize
  super(32, false)
end

Class Method Details

.singletonObject



212
213
214
# File 'lib/arrow-format/type.rb', line 212

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



225
226
227
# File 'lib/arrow-format/type.rb', line 225

def buffer_type
  :u32
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



229
230
231
# File 'lib/arrow-format/type.rb', line 229

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

#nameObject



221
222
223
# File 'lib/arrow-format/type.rb', line 221

def name
  "UInt32"
end