private static Put addSequenceNum(Put p, long openSeqNum, int replicaId) throws IOException {
    return p.add(CellBuilderFactory.create(CellBuilderType.SHALLOW_COPY).setRow(p.getRow())
      .setFamily(HConstants.CATALOG_FAMILY)
      .setQualifier(CatalogFamilyFormat.getSeqNumColumn(replicaId)).setTimestamp(p.getTimestamp())
      .setType(Type.Put).setValue(Bytes.toBytes(openSeqNum)).build());
  }
Performs an atomic multi-mutate operation against the given table. Used by the likes of merge
and split as these want to make atomic mutations across multiple rows.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateStore.java