Class: ArrowFormat::UInt8Type

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

#initializeUInt8Type

Returns a new instance of UInt8Type.



121
122
123
# File 'lib/arrow-format/type.rb', line 121

def initialize
  super(8, false)
end

Class Method Details

.singletonObject



116
117
118
# File 'lib/arrow-format/type.rb', line 116

def singleton
  @singleton ||= new
end

Instance Method Details

#buffer_typeObject



129
130
131
# File 'lib/arrow-format/type.rb', line 129

def buffer_type
  :U8
end

#build_array(size, validity_buffer, values_buffer) ⇒ Object



133
134
135
# File 'lib/arrow-format/type.rb', line 133

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

#nameObject



125
126
127
# File 'lib/arrow-format/type.rb', line 125

def name
  "UInt8"
end