Class: Parqueteur::Types::TimestampType
Instance Attribute Summary
#arrow_type, #options
Instance Method Summary
collapse
#initialize, #resolve
Instance Method Details
#arrow_type_builder ⇒ Object
17
18
19
20
21
|
# File 'lib/parqueteur/types/timestamp_type.rb', line 17
def arrow_type_builder
Arrow::TimestampDataType.new(
options.fetch(:unit, :second)
)
end
|
#build_value_array(values) ⇒ Object
11
12
13
14
15
|
# File 'lib/parqueteur/types/timestamp_type.rb', line 11
def build_value_array(values)
Arrow::TimestampArray.new(
options.fetch(:unit, :second), values
)
end
|