Skip to content

Commit

Permalink
修改方法名称,去掉不需要的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
Crossoverrr committed Dec 16, 2019
1 parent c46aa6f commit 12fd487
Showing 1 changed file with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,43 +450,6 @@ tableName, rowKeyColName, getHostAddresses(hostIndex), startKey, endKey, conditi
config.isRandomScheduleRedundantSplit(), regionIndex, regionInfo, snapshotName);
}

/**
* add salt to startKeys we generated from constraints
*
* @param startKeys startKeys
* @param saltLower saltLower
* @param saltUpper saltUpper
* @param rowKeySplitter rowKey splitter
* @return salty startKeys
*/
private List<String> addSalt2StartKeys(List<String> startKeys,
int saltLower, int saltUpper, String rowKeySplitter) {
List<String> saltyStartKeys = new ArrayList<>();
Iterator<String> skIt = startKeys.iterator();
String startKey;
String salt;
do {
if (!startKeys.isEmpty()) {
startKey = skIt.next();
} else {
startKey = "";
}
for (int i = saltLower; i <= saltUpper; i++) {
salt = Utils.addZeroPrefix(String.valueOf(i),
String.valueOf(saltUpper).length() - String.valueOf(i).length());
String saltyStartKey;
if (isEmpty(startKey)) {
saltyStartKey = salt;
} else {
saltyStartKey = salt + rowKeySplitter + startKey;
}

saltyStartKeys.add(saltyStartKey);
}
} while (skIt.hasNext());
return saltyStartKeys;
}

/**
* get scan startKey
*
Expand Down

0 comments on commit 12fd487

Please sign in to comment.