Class: Parqueteur::Types::Int64Type

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



14
15
16
17
18
19
20
# File 'lib/parqueteur/types/int64_type.rb', line 14

def arrow_type_builder
  if options.fetch(:unsigned, false) == true
    Arrow::UInt64DataType.new
  else
    Arrow::Int64DataType.new
  end
end

#build_value_array(values) ⇒ Object



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

def build_value_array(values)
  if options.fetch(:unsigned, false) == true
    Arrow::UInt64Array.new(values)
  else
    Arrow::Int64Array.new(values)
  end
end