Class: ArrowFormat::UInt16Type

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

#initializeUInt16Type

Returns a new instance of UInt16Type.



169
170
171
# File 'lib/arrow-format/type.rb', line 169

def initialize
  super(16, false)
end

Class Method Details

.singletonObject



164
165
166
# File 'lib/arrow-format/type.rb', line 164

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



177
178
179
# File 'lib/arrow-format/type.rb', line 177

def buffer_type
  :u16
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



181
182
183
# File 'lib/arrow-format/type.rb', line 181

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

#nameObject



173
174
175
# File 'lib/arrow-format/type.rb', line 173

def name
  "UInt16"
end