class Parqueteur::Column

Attributes

name[R]
options[R]
type[R]

Public Class Methods

new(name, type, options = {}, &block) click to toggle source
# File lib/parqueteur/column.rb, line 7
def initialize(name, type, options = {}, &block)
  @name = name.to_s
  @type = Parqueteur::TypeResolver.resolve(type, options, &block)
  @options = options
end

Public Instance Methods

arrow_type() click to toggle source
# File lib/parqueteur/column.rb, line 13
def arrow_type
  @type.arrow_type
end
to_arrow_field() click to toggle source
# File lib/parqueteur/column.rb, line 17
def to_arrow_field
  Arrow::Field.new(name, arrow_type)
end