Class: Parqueteur::Types::ArrayType
Instance Attribute Summary
#arrow_type, #options
Instance Method Summary
collapse
#initialize, #resolve
Instance Method Details
#arrow_type_builder ⇒ Object
10
11
12
13
14
15
16
17
18
|
# File 'lib/parqueteur/types/array_type.rb', line 10
def arrow_type_builder
Arrow::ListDataType.new(
if options[:elements].is_a?(Hash)
resolve(options[:elements].fetch(:type), options[:elements]).arrow_type
else
resolve(options[:elements]).arrow_type
end
)
end
|
#build_value_array(values) ⇒ Object
6
7
8
|
# File 'lib/parqueteur/types/array_type.rb', line 6
def build_value_array(values)
Arrow::ListArrayBuilder.build(arrow_type, values)
end
|