MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / micv

Class micv

test/Test.java:184–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 private static final class micv implements Cmd {
185 public void execute(final HBaseClient client, String[] args) {
186 ensureArguments(args, 6, 7);
187 final MultiColumnAtomicIncrementRequest micv =
188 new MultiColumnAtomicIncrementRequest(args[2], args[3], args[4], args[5].split(","));
189 if (args.length > 6) {
190 String[] raw = args[6].split(",");
191 long[] amounts = new long[raw.length];
192 for(int i = 0; i < amounts.length; i++) {
193 amounts[i] = Long.parseLong(raw[i]);
194 }
195 micv.setAmounts(amounts);
196 }
197 args = null;
198 try {
199 final Map<byte[], Long> result = client.atomicIncrement(micv).joinUninterruptibly();
200 final String formatted = Joiner.on("->").withKeyValueSeparator(";").join(result);
201 LOG.info("MICV result=" + formatted);
202 } catch (Exception e) {
203 LOG.error("ICV failed", e);
204 }
205 }
206 }
207
208 private static final class put implements Cmd {
209 public void execute(final HBaseClient client, String[] args) throws Exception {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…