Skip to content

Instantly share code, notes, and snippets.

@dehora
Created November 23, 2010 02:00
Show Gist options
  • Save dehora/711110 to your computer and use it in GitHub Desktop.
Save dehora/711110 to your computer and use it in GitHub Desktop.
Datagrid datagrid = Builder.newDatagrid();
Table table = datagrid.useTable("Table");
Key<String> key = Builder.newKeyMaker().createKey("key");
ColumnFamily cf = Builder.newColumnFamily("ColumnFamily");
Column<String, String> c2 = Builder.newColumn("c-1", "value");
Column<String, String> c3 = Builder.newColumn("c-2", "value");
Column<String, String> c4 = Builder.newColumn("c-3", "value");
Mutation mutation = table.newMutation().prepareInsert(key, cf, c2, c3, c4);
mutation.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment