Class: Parqueteur::Types::TimestampType

Inherits:
Parqueteur::Type show all
Defined in:
lib/parqueteur/types/timestamp_type.rb

Instance Attribute Summary

Attributes inherited from Parqueteur::Type

#arrow_type, #options

Instance Method Summary collapse

Methods inherited from Parqueteur::Type

#initialize, #resolve

Constructor Details

This class inherits a constructor from Parqueteur::Type

Instance Method Details

#arrow_type_builderObject



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