Cell(
value: bytes,
row_key: bytes,
family: str,
qualifier: bytes | str,
timestamp_micros: int,
labels: typing.Optional[list[str]] = None,
)Model class for cell data
Does not represent all data contained in the cell, only data returned by a query. Expected to be read-only to users, and written by backend
Methods
__eq__
__eq__(other) -> boolImplements == operator
| Returns | |
|---|---|
| Type | Description |
bool |
True if cells are equal, False otherwise |
__hash__
__hash__()Implements hash() function to fingerprint cell
| Returns | |
|---|---|
| Type | Description |
int |
hash value of the cell |
__int__
__int__() -> intAllows casting cell to int Interprets value as a 64-bit big-endian signed integer, as expected by ReadModifyWrite increment rule
| Returns | |
|---|---|
| Type | Description |
int |
Value of the cell as a 64-bit big-endian signed integer |
__lt__
__lt__(other) -> boolImplements < operator
| Exceptions | |
|---|---|
| Type | Description |
NotImplementedError |
If other is not a Cell |
| Returns | |
|---|---|
| Type | Description |
bool |
True if this cell is less than the other cell, False otherwise |
__ne__
__ne__(other) -> boolImplements != operator
| Returns | |
|---|---|
| Type | Description |
bool |
True if cells are not equal, False otherwise |
__repr__
__repr__()Returns a string representation of the cell
| Returns | |
|---|---|
| Type | Description |
str |
String representation of the cell |
__str__
__str__() -> strAllows casting cell to str Prints encoded byte string, same as printing value directly.
| Returns | |
|---|---|
| Type | Description |
str |
Encoded byte string of the value |