Class: Google::Apis::BigtableadminV2::TableStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb

Overview

Approximate statistics related to a table. These statistics are calculated infrequently, while simultaneously, data in the table can change rapidly. Thus the values reported here (e.g. row count) are very likely out-of date, even the instant they are received in this API. Thus, only treat these values as approximate. IMPORTANT: Everything below is approximate, unless otherwise specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableStats

Returns a new instance of TableStats.



3509
3510
3511
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3509

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#average_cells_per_columnFloat

How many cells are present per column (column family, column qualifier) combinations, averaged over all columns in all rows in the table. e.g. A table with 2 rows: * A row with 3 cells in "family:col" and 1 cell in "other:col" (4 cells / 2 columns) * A row with 1 cell in "family:col", 7 cells in "family: other_col", and 7 cells in "other:data" (15 cells / 3 columns) would report (4

  • 15)/(2 + 3) = 3.8 in this field. Corresponds to the JSON property averageCellsPerColumn

Returns:

  • (Float)


3487
3488
3489
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3487

def average_cells_per_column
  @average_cells_per_column
end

#average_columns_per_rowFloat

How many (column family, column qualifier) combinations are present per row in the table, averaged over all rows in the table. e.g. A table with 2 rows: * A row with cells in "family:col" and "other:col" (2 distinct columns) * A row with cells in "family:col", "family:other_col", and "other:data" (3 distinct columns) would report (2 + 3)/2 = 2.5 in this field. Corresponds to the JSON property averageColumnsPerRow

Returns:

  • (Float)


3496
3497
3498
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3496

def average_columns_per_row
  @average_columns_per_row
end

#logical_data_bytesFixnum

This is roughly how many bytes would be needed to read the entire table (e.g. by streaming all contents out). Corresponds to the JSON property logicalDataBytes

Returns:

  • (Fixnum)


3502
3503
3504
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3502

def logical_data_bytes
  @logical_data_bytes
end

#row_countFixnum

How many rows are in the table. Corresponds to the JSON property rowCount

Returns:

  • (Fixnum)


3507
3508
3509
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3507

def row_count
  @row_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3514
3515
3516
3517
3518
3519
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3514

def update!(**args)
  @average_cells_per_column = args[:average_cells_per_column] if args.key?(:average_cells_per_column)
  @average_columns_per_row = args[:average_columns_per_row] if args.key?(:average_columns_per_row)
  @logical_data_bytes = args[:logical_data_bytes] if args.key?(:logical_data_bytes)
  @row_count = args[:row_count] if args.key?(:row_count)
end