private static Set < String > getIndexedColumnSetForTable ( Table table ) { HashSet < String > columns = new HashSet <> ( ) ; for ( Index index : table . getIndexes ( ) ) { for ( ColumnRef colRef : index . getColumns ( ) ) { columns . add ( colRef . getColumn ( ) . getTypeName ( ) ) ; } } return columns ; }
Get the unique set of names of all columns that are part of an index on the given table .