Class: DeltaSharing::Reader

Inherits:
Object
  • Object
show all
Defined in:
lib/delta_sharing/reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table:, client:, **_options) ⇒ Reader

Table format: <share>.<schema>.<table>



8
9
10
11
12
# File 'lib/delta_sharing/reader.rb', line 8

def initialize(table:, client:, **_options)
  validate_table_format(table)
  @share, @schema, @name = table.split('.')
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/delta_sharing/reader.rb', line 5

def client
  @client
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/delta_sharing/reader.rb', line 5

def name
  @name
end

#schemaObject (readonly)

Returns the value of attribute schema.



5
6
7
# File 'lib/delta_sharing/reader.rb', line 5

def schema
  @schema
end

#shareObject (readonly)

Returns the value of attribute share.



5
6
7
# File 'lib/delta_sharing/reader.rb', line 5

def share
  @share
end

#tableObject (readonly)

Returns the value of attribute table.



5
6
7
# File 'lib/delta_sharing/reader.rb', line 5

def table
  @table
end

Instance Method Details

#load_as_arrow(options = {}) ⇒ Object

Main reading methods (to be implemented)



15
16
17
18
# File 'lib/delta_sharing/reader.rb', line 15

def load_as_arrow(options = {})
  validate_query_options(options)
  read(options)
end