private List < ? > populateEntityObjectsList ( DataFrame dataFrame , EntityMetadata m ) { List results = new ArrayList ( ) ; String [ ] columns = dataFrame . columns ( ) ; Map < String , Integer > map = createMapOfColumnIndex ( columns ) ; for ( Row row : dataFrame . collectAsList ( ) ) { Object entity = populateEntityFromDataFrame ( m , map , row ) ; results . add ( entity ) ; } return results ; }
Populate entity objects list .