Class: Iceberg::TableScan

Inherits:
Object
  • Object
show all
Defined in:
lib/iceberg/table_scan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scan, table) ⇒ TableScan

Returns a new instance of TableScan.



5
6
7
8
# File 'lib/iceberg/table_scan.rb', line 5

def initialize(scan, table)
  @scan = scan
  @table = table
end

Instance Attribute Details

#tableObject (readonly)

Returns the value of attribute table.



3
4
5
# File 'lib/iceberg/table_scan.rb', line 3

def table
  @table
end

Instance Method Details

#collectObject



18
19
20
# File 'lib/iceberg/table_scan.rb', line 18

def collect
  @scan.collect
end

#plan_filesObject



10
11
12
# File 'lib/iceberg/table_scan.rb', line 10

def plan_files
  @scan.plan_files
end

#snapshotObject



14
15
16
# File 'lib/iceberg/table_scan.rb', line 14

def snapshot
  @scan.snapshot
end

#to_aObject



22
23
24
# File 'lib/iceberg/table_scan.rb', line 22

def to_a
  collect.to_a
end

#to_arrowObject



26
27
28
29
30
# File 'lib/iceberg/table_scan.rb', line 26

def to_arrow
  require "nanoarrow"

  Nanoarrow::Array.new(@scan)
end