Map<String, Object[]> splitShardsKeys = splitShardsKeys(values);
List<TransferInput> partInputs = new ArrayList<TransferInput>();
for (Map.Entry<String, Object[]> entry : splitShardsKeys.entrySet()) {
String tableId = entry.getKey();
String sql = dataSourceSql.replace("{TABLE_ID}", tableId);
TransferInput[] childParts = new InputDbQueryIN(dataSource, sql, entry.getValue()).getPartInputs();
for (TransferInput childPart : childParts) {
partInputs.add(childPart);
}
}
return partInputs.toArray(new TransferInput[partInputs.size()]);