Class: Google::Cloud::Bigtable::Row
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::Row
- Defined in:
- lib/google/cloud/bigtable/row.rb
Overview
Row
Row structure based on merged cells using read row state.
Defined Under Namespace
Classes: Cell
Instance Attribute Summary collapse
-
#cells ⇒ Hash{String => Array<Google::Cloud::Bigtable::Row::Cell>}
Row cells.
-
#key ⇒ String
Row key.
Instance Method Summary collapse
-
#column_families ⇒ Array<String>
List of column families names.
-
#initialize(key = nil) ⇒ Row
constructor
Creates a flat row object.
Constructor Details
#initialize(key = nil) ⇒ Row
Creates a flat row object.
105 106 107 108 |
# File 'lib/google/cloud/bigtable/row.rb', line 105 def initialize key = nil @key = key @cells = Hash.new { |h, k| h[k] = [] } end |
Instance Attribute Details
#cells ⇒ Hash{String => Array<Google::Cloud::Bigtable::Row::Cell>}
Returns Row cells.
98 99 100 |
# File 'lib/google/cloud/bigtable/row.rb', line 98 def cells @cells end |
#key ⇒ String
Returns Row key.
93 94 95 |
# File 'lib/google/cloud/bigtable/row.rb', line 93 def key @key end |
Instance Method Details
#column_families ⇒ Array<String>
List of column families names.
115 116 117 |
# File 'lib/google/cloud/bigtable/row.rb', line 115 def column_families @cells.keys end |