Class: Parqueteur::Types::Time32Type

Inherits:
Parqueteur::Type show all
Defined in:
lib/parqueteur/types/time32_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



12
13
14
15
16
# File 'lib/parqueteur/types/time32_type.rb', line 12

def arrow_type_builder
  Arrow::Time32DataType.new(
    options.fetch(:unit, :second)
  )
end

#build_value_array(values) ⇒ Object



6
7
8
9
10
# File 'lib/parqueteur/types/time32_type.rb', line 6

def build_value_array(values)
  Arrow::Time32Array.new(
    @options.fetch(:precision, :second), values
  )
end