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

Method compare

src/MultiAction.java:532–540  ·  view source on GitHub ↗
(final BatchableRpc a, final BatchableRpc b)

Source from the content-addressed store, hash-verified

530 }
531
532 @Override
533 /** Compares two RPCs. */
534 public int compare(final BatchableRpc a, final BatchableRpc b) {
535 int region_cmp = Bytes.memcmp(a.getRegion().name(), b.getRegion().name());
536 if (region_cmp != 0) {
537 return region_cmp;
538 }
539 return Bytes.memcmp(a.key, b.key);
540 }
541
542 }
543

Callers

nothing calls this directly

Calls 3

memcmpMethod · 0.95
nameMethod · 0.45
getRegionMethod · 0.45

Tested by

no test coverage detected