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;
    }
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.

@param dataFrame
the data frame
@param m
the m
@return the list