TiBigData
TiBigData copied to clipboard
Optimize tidb-core module API
What is the purpose of the change
Reduce the number of RPC getTable calls.
Brief change log
- add a new field named titableinfo in
io.tidb.bigdata.tidb.handle.TableHandleInternal
to storead titableinfo, instead of querying it every time. - Add builder for
io.tidb.bigdata.tidb.RecordSetInternal
; - Move getSplit() method to ClientSession, we needn't SplitManager in flink/hive/mapreduce;
- Reduce the number of RPC getTable calls;
- Change a lot of methods parameters (String databaseName,String tableName) to (String databaseName,TiTableInfo tableInfo) in ClientSession.
Verifying this change
Use current tests enough.
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API: no
- The runtime per-record code paths (performance sensitive): yes
Documentation
- Does this pull request introduce a new feature? no
/run-all-tests
/run-all-tests
/run-all-tests
/run-all-tests
flink part LGTM