}
if (stopRow != null && (curEndKey.compareTo(stopRow) > 0 || curEndKey.compareTo(emptyStartRow) == 0)) {
LOG.info("Truncating split...");
curEndKey = stopRow;
}
splits[curSplit] = new TableSplit(this.table.getTableName(), curStartKey.array(), curEndKey.array(), regionLocation);
LOG.info("split: " + i + "->" + splits[curSplit]);
curSplit += 1;
}
return Arrays.copyOf(splits, curSplit);
}