Add index hints (#425)
* Added parsing of table hints * Implemented USE INDEX hints * Added docs, tidied up code for submission * Added docs, tidied up code for submission * Removed used of final static field that would cause problems with Tomcat class unloading * Removed used of final static field that would cause problems with Tomcat class unloading * A table with no index hints now has indexHints == null, instead of an employ instance of IndexHints. For the common case of no index hints, this will prevent some unnecessary object creation. * Index Hints now is backward compatible with using the "USE" as a table alias * Added TestIndexHints to list of all tests * Added index hints to text generated by TableFilter.getPlanSQL(); * Improved field names (a field called indexList was actually a set); Added test for ensuring getPlanSQL lists index hints in correct order * Improved unit test for making sure getPlanSQL renders index hints list in correct order
正在显示
请
注册
或者
登录
后发表评论