Table *T = OpenOrDie ("/bigtable/webtable");
// Select row for modification. RowMutation row (T, "row.key"); // Adjust row by adding and deleting columns. row.Set ("family:column.key.one", "value"); row.Delete ("family:column.key.two"); // Perform the operation atomically. Operation op; Apply (&op, &row);
// Prepare for iteration. Scanner scanner (T); ScanStream *stream; stream = scanner.FetchColumnFamily ("family"); stream->SetReturnAllVersions (); scanner.Lookup ("row.key"); // Iterate over returned values. for ( ; !stream->Done () ; stream->Next ()) { printf ("%s %s %lld %s\n", scanner.RowName (), stream->ColumnName (), stream->MicroTimestamp (), stream->Value ()); }
// Example adjusted from literature, see references.
locate row by key and time
iterate over rows with lexicographic ordering of keys
limit results by column family
limit results by timestamp
run script on server
...
row operations atomic
transactions over single rows
garbage collection of old versions by number or by time