Class: Google::Apis::BigtableadminV2::ColumnFamilyStats

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 single column family within a table. This information may change rapidly, interpreting these values at a point in time may already preset out-of-date information. Everything below is approximate, unless otherwise specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ColumnFamilyStats

Returns a new instance of ColumnFamilyStats.



722
723
724
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 722

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

Instance Attribute Details

#average_cells_per_columnFloat

How many cells are present per column qualifier in this column family, averaged over all rows containing any column in the column family. e.g. For column family "family" in a table with 3 rows: * A row with 3 cells in "family: col" and 1 cell in "other:col" (3 cells / 1 column in "family") * A row with 1 cell in "family:col", 7 cells in "family:other_col", and 7 cells in "other: data" (8 cells / 2 columns in "family") * A row with 3 cells in "other:col" (0 columns in "family", "family" not present) would report (3 + 8 + 0)/(1 + 2 + 0) = 3.66 in this field. Corresponds to the JSON property averageCellsPerColumn

Returns:

  • (Float)


703
704
705
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 703

def average_cells_per_column
  @average_cells_per_column
end

#average_columns_per_rowFloat

How many column qualifiers are present in this column family, averaged over all rows in the table. e.g. For column family "family" in a table with 3 rows:

  • A row with cells in "family:col" and "other:col" (1 column in "family") * A row with cells in "family:col", "family:other_col", and "other:data" (2 columns in "family") * A row with cells in "other:col" (0 columns in "family", "family" not present) would report (1 + 2 + 0)/3 = 1.5 in this field. Corresponds to the JSON property averageColumnsPerRow

Returns:

  • (Float)


713
714
715
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 713

def average_columns_per_row
  @average_columns_per_row
end

#logical_data_bytesFixnum

How much space the data in the column family occupies. This is roughly how many bytes would be needed to read the contents of the entire column family (e. g. by streaming all contents out). Corresponds to the JSON property logicalDataBytes

Returns:

  • (Fixnum)


720
721
722
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 720

def logical_data_bytes
  @logical_data_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



727
728
729
730
731
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 727

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)
end