Class: Iceberg::TableScan
- Inherits:
-
Object
- Object
- Iceberg::TableScan
- Defined in:
- lib/iceberg/table_scan.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
- #collect ⇒ Object
-
#initialize(scan, table) ⇒ TableScan
constructor
A new instance of TableScan.
- #plan_files ⇒ Object
- #snapshot ⇒ Object
- #to_a ⇒ Object
- #to_arrow ⇒ Object
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
#table ⇒ Object (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
#collect ⇒ Object
18 19 20 |
# File 'lib/iceberg/table_scan.rb', line 18 def collect @scan.collect end |
#plan_files ⇒ Object
10 11 12 |
# File 'lib/iceberg/table_scan.rb', line 10 def plan_files @scan.plan_files end |
#snapshot ⇒ Object
14 15 16 |
# File 'lib/iceberg/table_scan.rb', line 14 def snapshot @scan.snapshot end |
#to_a ⇒ Object
22 23 24 |
# File 'lib/iceberg/table_scan.rb', line 22 def to_a collect.to_a end |
#to_arrow ⇒ Object
26 27 28 29 30 |
# File 'lib/iceberg/table_scan.rb', line 26 def to_arrow require "nanoarrow" Nanoarrow::Array.new(@scan) end |