Class: ArrowFormat::Int8Type
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
Returns a new instance of Int8Type.
97
98
99
|
# File 'lib/arrow-format/type.rb', line 97
def initialize
super(8, true)
end
|
Class Method Details
.singleton ⇒ Object
92
93
94
|
# File 'lib/arrow-format/type.rb', line 92
def singleton
@singleton ||= new
end
|
Instance Method Details
#buffer_type ⇒ Object
105
106
107
|
# File 'lib/arrow-format/type.rb', line 105
def buffer_type
:S8
end
|
#build_array(size, validity_buffer, values_buffer) ⇒ Object
109
110
111
|
# File 'lib/arrow-format/type.rb', line 109
def build_array(size, validity_buffer, values_buffer)
Int8Array.new(size, validity_buffer, values_buffer)
end
|
#name ⇒ Object
101
102
103
|
# File 'lib/arrow-format/type.rb', line 101
def name
"Int8"
end
|