Class: Parqueteur::Types::Int32Type
Instance Attribute Summary
#arrow_type, #options
Instance Method Summary
collapse
#initialize, #resolve
Instance Method Details
#arrow_type_builder ⇒ Object
14
15
16
17
18
19
20
|
# File 'lib/parqueteur/types/int32_type.rb', line 14
def arrow_type_builder
if options.fetch(:unsigned, false) == true
Arrow::UInt32DataType.new
else
Arrow::Int32DataType.new
end
end
|
#build_value_array(values) ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/parqueteur/types/int32_type.rb', line 6
def build_value_array(values)
if options.fetch(:unsigned, false) == true
Arrow::UInt32Array.new(values)
else
Arrow::Int32Array.new(values)
end
end
|