in python/thrift/flask_thrift.py [0:0]
def _put(table, row_key, column, value, type_):
""" Puts a cell in an Hbase row
:param table: The name of the table
:param row_key: The key of the row we want to put a value in
:param column: The column name including the column family with
the colon format, such as 'cf:count'
:param value: The array of bytes (using Python's string type)
to insert as the value for this cell
:param type_: 'str' or 'int'. If int, it will be serialized a
4 byte stream.
:return: None
"""
with ThriftClient() as client:
if type_ == 'int':
value = _encode_int(int(value))
client.put_row(table, row_key, column, value)