in spanner-data-validator-java/src/main/java/com/google/migration/ShardSpecList.java [30:55]
public static List<ShardSpec> getShardSpecs(DVTOptionsCore options) {
ArrayList<ShardSpec> shardSpecs = new ArrayList<>();
String host = options.getServer();
String user = options.getUsername();
String pass = options.getPassword();
String db = options.getSourceDB();
ShardSpec spec = new ShardSpec(host,
user,
pass,
String.format("%s", db),
String.format("id%d", 1),
0);
shardSpecs.add(spec);
spec = new ShardSpec(host,
user,
pass,
String.format("%s%d", db, 2),
String.format("id%d", 2),
1);
shardSpecs.add(spec);
return shardSpecs;
}