Class: Altertable::Lakehouse::Models::TableScanEstimate

Inherits:
Request
  • Object
show all
Defined in:
lib/altertable/lakehouse/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#to_h

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_rowsObject (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

#filtersObject (readonly)

Returns the value of attribute filters.



268
269
270
# File 'lib/altertable/lakehouse/models.rb', line 268

def filters
  @filters
end

#scanned_bytes_estimateObject (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_estimateObject (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_nameObject (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_bytesObject (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_filesObject (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