Index getIndexForColumns ( int [ ] cols ) { int i = bestIndexForColumn [ cols [ 0 ] ] ; if ( i > - 1 ) { return indexList [ i ] ; } switch ( tableType ) { case TableBase . SYSTEM_SUBQUERY : case TableBase . SYSTEM_TABLE : case TableBase . VIEW_TABLE : case TableBase . TEMP_TABLE : { Index index = createIndexForColumns ( cols ) ; return index ; } } return null ; }
Finds an existing index for a column group