Class: Altertable::Lakehouse::Models::TableScanEstimate
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#estimated_rows ⇒ Object
readonly
Returns the value of attribute estimated_rows.
-
#filters ⇒ Object
readonly
Returns the value of attribute filters.
-
#scanned_bytes_estimate ⇒ Object
readonly
Returns the value of attribute scanned_bytes_estimate.
-
#scanned_files_estimate ⇒ Object
readonly
Returns the value of attribute scanned_files_estimate.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
-
#total_bytes ⇒ Object
readonly
Returns the value of attribute total_bytes.
-
#total_files ⇒ Object
readonly
Returns the value of attribute total_files.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(table_name:, estimated_rows:, filters: nil, scanned_bytes_estimate: nil, scanned_files_estimate: nil, total_bytes: nil, total_files: nil) ⇒ TableScanEstimate
constructor
A new instance of TableScanEstimate.
Methods inherited from Request
Constructor Details
#initialize(table_name:, estimated_rows:, filters: nil, scanned_bytes_estimate: nil, scanned_files_estimate: nil, total_bytes: nil, total_files: nil) ⇒ TableScanEstimate
Returns a new instance of TableScanEstimate.
271 272 273 274 275 276 277 278 279 280 |
# File 'lib/altertable/lakehouse/models.rb', line 271 def initialize(table_name:, estimated_rows:, filters: nil, scanned_bytes_estimate: nil, scanned_files_estimate: nil, total_bytes: nil, total_files: nil) @table_name = table_name @estimated_rows = estimated_rows @filters = filters @scanned_bytes_estimate = scanned_bytes_estimate @scanned_files_estimate = scanned_files_estimate @total_bytes = total_bytes @total_files = total_files end |
Instance Attribute Details
#estimated_rows ⇒ Object (readonly)
Returns the value of attribute estimated_rows.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def estimated_rows @estimated_rows end |
#filters ⇒ Object (readonly)
Returns the value of attribute filters.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def filters @filters end |
#scanned_bytes_estimate ⇒ Object (readonly)
Returns the value of attribute scanned_bytes_estimate.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def scanned_bytes_estimate @scanned_bytes_estimate end |
#scanned_files_estimate ⇒ Object (readonly)
Returns the value of attribute scanned_files_estimate.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def scanned_files_estimate @scanned_files_estimate end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def table_name @table_name end |
#total_bytes ⇒ Object (readonly)
Returns the value of attribute total_bytes.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def total_bytes @total_bytes end |
#total_files ⇒ Object (readonly)
Returns the value of attribute total_files.
268 269 270 |
# File 'lib/altertable/lakehouse/models.rb', line 268 def total_files @total_files end |
Class Method Details
.from_h(h) ⇒ Object
282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/altertable/lakehouse/models.rb', line 282 def self.from_h(h) new( table_name: h["table_name"], estimated_rows: h["estimated_rows"], filters: h["filters"], scanned_bytes_estimate: h["scanned_bytes_estimate"], scanned_files_estimate: h["scanned_files_estimate"], total_bytes: h["total_bytes"], total_files: h["total_files"] ) end |