Class: DeltaSharing::Reader
- Inherits:
-
Object
- Object
- DeltaSharing::Reader
- Defined in:
- lib/delta_sharing/reader.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#share ⇒ Object
readonly
Returns the value of attribute share.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table:, client:, **_options) ⇒ Reader
constructor
Table format: <share>.<schema>.<table>.
-
#load_as_arrow(options = {}) ⇒ Object
Main reading methods (to be implemented).
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:, **) validate_table_format(table) @share, @schema, @name = table.split('.') @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/delta_sharing/reader.rb', line 5 def client @client end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/delta_sharing/reader.rb', line 5 def name @name end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
5 6 7 |
# File 'lib/delta_sharing/reader.rb', line 5 def schema @schema end |
#share ⇒ Object (readonly)
Returns the value of attribute share.
5 6 7 |
# File 'lib/delta_sharing/reader.rb', line 5 def share @share end |
#table ⇒ Object (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( = {}) () read() end |