Class: HbaseAdapter::Cell
- Inherits:
-
Object
- Object
- HbaseAdapter::Cell
- Defined in:
- lib/hbase_adapter/cell.rb
Instance Attribute Summary collapse
-
#cell ⇒ Object
readonly
Returns the value of attribute cell.
-
#col_name ⇒ Object
readonly
Returns the value of attribute col_name.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(connection, row, col_name, cell) ⇒ Cell
constructor
A new instance of Cell.
- #timestamp ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(connection, row, col_name, cell) ⇒ Cell
Returns a new instance of Cell.
5 6 7 |
# File 'lib/hbase_adapter/cell.rb', line 5 def initialize(connection, row, col_name, cell) @connection, @row, @col_name, @cell = connection, row, col_name.to_sym, cell end |
Instance Attribute Details
#cell ⇒ Object (readonly)
Returns the value of attribute cell.
3 4 5 |
# File 'lib/hbase_adapter/cell.rb', line 3 def cell @cell end |
#col_name ⇒ Object (readonly)
Returns the value of attribute col_name.
3 4 5 |
# File 'lib/hbase_adapter/cell.rb', line 3 def col_name @col_name end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
3 4 5 |
# File 'lib/hbase_adapter/cell.rb', line 3 def connection @connection end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
3 4 5 |
# File 'lib/hbase_adapter/cell.rb', line 3 def row @row end |
Instance Method Details
#timestamp ⇒ Object
9 10 11 |
# File 'lib/hbase_adapter/cell.rb', line 9 def cell. end |
#value ⇒ Object
13 14 15 |
# File 'lib/hbase_adapter/cell.rb', line 13 def value cell.value end |