class Google::Cloud::Bigtable::Row
# Row
Row
structure based on merged cells using read row state.
Attributes
cells[RW]
@return [Hash{String => Array<Google::Cloud::Bigtable::Row::Cell>}] Row
cells.
key[RW]
@return [String] Row
key.
Public Class Methods
new(key = nil)
click to toggle source
Creates a flat row object.
@param key [String] Row
key name.
# File lib/google/cloud/bigtable/row.rb, line 109 def initialize key = nil @key = key @cells = Hash.new { |h, k| h[k] = [] } end
Public Instance Methods
==(other)
click to toggle source
@private
FlatRow object comparator.
@return [Boolean]
# File lib/google/cloud/bigtable/row.rb, line 129 def == other return false unless self.class == other.class return false if key != other.key || column_families != other.column_families cells.all? do |family, list| list == other.cells[family] end end
column_families()
click to toggle source
List of column families names.
@return [Array<String>]
# File lib/google/cloud/bigtable/row.rb, line 119 def column_families @cells.keys end