Class: Arrow::Column

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/arrow/column.rb

Instance Method Summary collapse

Instance Method Details

#[](i) ⇒ Object



30
31
32
# File 'lib/arrow/column.rb', line 30

def [](i)
  data[i]
end

#each(&block) ⇒ Object



34
35
36
37
38
# File 'lib/arrow/column.rb', line 34

def each(&block)
  return to_enum(__method__) unless block_given?

  data.each(&block)
end

#null?(i) ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/arrow/column.rb', line 22

def null?(i)
  data.null?(i)
end

#packObject



46
47
48
# File 'lib/arrow/column.rb', line 46

def pack
  self.class.new(field, data.pack)
end

#reverse_each(&block) ⇒ Object



40
41
42
43
44
# File 'lib/arrow/column.rb', line 40

def reverse_each(&block)
  return to_enum(__method__) unless block_given?

  data.reverse_each(&block)
end

#valid?(i) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/arrow/column.rb', line 26

def valid?(i)
  data.valid?(i)
end