Skip to content

Instantly share code, notes, and snippets.

@samuraisam
Created January 4, 2012 22:40
Show Gist options
  • Save samuraisam/1562600 to your computer and use it in GitHub Desktop.
Save samuraisam/1562600 to your computer and use it in GitHub Desktop.
Adding to a counter column
// adding to a potentially non-existent counter column
Mutator<String> m2 = HFactory.createMutator(ServiceDescriptor.keyspace(), StringSerializer.get());
m2.addCounter(indexRowKey, "streamidx", HFactory.createCounterColumn(indexColKey, 1, StringSerializer.get()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment