Created
January 4, 2012 22:40
-
-
Save samuraisam/1562600 to your computer and use it in GitHub Desktop.
Adding to a counter column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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