We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
currently tispark use the following api to get region info
public static List<TiRegion> getRegionsByTable(TiSession session, TiTableInfo table) { ArrayList<TiRegion> regionList = new ArrayList<>(); Key key = RowKey.createMin(table.getId()); RowKey endRowKey = RowKey.createBeyondMax(table.getId()); while (key.compareTo(endRowKey) < 0) { TiRegion region = session.getRegionManager().getRegionByKey(key.toByteString()); regionList.add(region); key = Key.toRawKey(region.getEndKey()); } return regionList; }
it's better to use ScanRegions API
ScanRegions
The text was updated successfully, but these errors were encountered:
zhexuany
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
currently tispark use the following api to get region info
it's better to use
ScanRegions
APIThe text was updated successfully, but these errors were encountered: