Functions | |
| const char * | error_get_text (int error_code) |
| Retrieves a descriptive error string of an error code. More... | |
| void | create_cell_unique (const TablePtr &table, const KeySpec &key, String &guid) |
| Inserts a unique value into a table. More... | |
| String | generate_guid () |
| Generates a new GUID. More... | |
| void Hypertable::HyperAppHelper::create_cell_unique | ( | const TablePtr & | table, |
| const KeySpec & | key, | ||
| String & | guid | ||
| ) |
Inserts a unique value into a table.
This function inserts a unique value into a table. The table must be created with TIME_ORDER DESC, MAX_VERSIONS 1 (although the latter is optional).
If the value is empty then a new GUID will be assigned (using generate_guid).
If the table was not created with TIME_ORDER DESC an exception will be thrown.
Unique values are just like any other values. They can be deleted with the regular mutator interface and queried with a scanner.
| table | The table pointer |
| key | The KeySpec object with Row, Column and Column Family |
| guid | The unique string; will be filled with a new GUID if it's empty |
| const char* Hypertable::HyperAppHelper::error_get_text | ( | int | error_code | ) |
1.8.8