Class: HbaseAdapter::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/hbase_adapter/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cellObject (readonly)

Returns the value of attribute cell.



3
4
5
# File 'lib/hbase_adapter/cell.rb', line 3

def cell
  @cell
end

#col_nameObject (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

#connectionObject (readonly)

Returns the value of attribute connection.



3
4
5
# File 'lib/hbase_adapter/cell.rb', line 3

def connection
  @connection
end

#rowObject (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

#timestampObject



9
10
11
# File 'lib/hbase_adapter/cell.rb', line 9

def timestamp
  cell.timestamp
end

#valueObject



13
14
15
# File 'lib/hbase_adapter/cell.rb', line 13

def value
  cell.value
end