constant test first :
`TableMap::TYPE_NUM == \$indexType`