question: void init ( List < ColumnMetaData > columnMetaData ) { this . columnMetaData = columnMetaData ; columnRoles . clear ( ) ; columnNames . clear ( ) ; int columnIndex = 0 ; for ( ColumnMetaData column : columnMetaData ) { addColumnToColumnsMaps ( columnIndex , column ) ; if ( ! column . isRemoved ( ) ) { selectedColumns . add ( columnIndex ) ; } columnIndex ++ ; } checkForDuplicates ( ) ; }
target:  Initializes the validator with the given columnMetaData.