public TableDescriptorBuilder setReplicationScope(int scope) {
    Map<byte[], ColumnFamilyDescriptor> newFamilies = new TreeMap<>(Bytes.BYTES_RAWCOMPARATOR);
    newFamilies.putAll(desc.families);
    newFamilies.forEach((cf, cfDesc) -> {
      desc.removeColumnFamily(cf);
      desc
        .setColumnFamily(ColumnFamilyDescriptorBuilder.newBuilder(cfDesc).setScope(scope).build());
    });
    return this;
  }
Sets replication scope all & only the columns already in the builder. Columns added later won't
be backfilled with replication scope.
@param scope replication scope
@return a TableDescriptorBuilder
hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java