public static String constructShardName(int replicaId,int dbId){
  if (dbId == 0) {
    return String.valueOf(replicaId);
  }
 else {
    return String.format("%dd%d",replicaId,dbId);
  }
}

public static String constructShardName ( int replicaId , int dbId ) { if ( dbId == 0 ) { return String . valueOf ( replicaId ) ; } else { return String . format ( "%dd%d" , replicaId , dbId ) ; } }
constructs the shard name given a replica id and db id
