public static void collectFrom(List<Selector> selectors, Collection<?> results, Map<String, FieldAccess> fields) {


        for ( Selector s : selectors ) {
            s.handleStart( results );
        }


        int index = 0;
        for ( Object item : results ) {
            for ( Selector s : selectors ) {
                s.handleRow( index, null, item, fields );
            }
            index++;
        }

        for ( Selector s : selectors ) {
            s.handleComplete( null );
        }

    }
public static void collectFrom(List<Selector> selectors, Collection<?> results, Map<String, FieldAccess> fields) {


        for ( Selector s : selectors ) {
            s.handleStart( results );
        }


        int index = 0;
        for ( Object item : results ) {
            for ( Selector s : selectors ) {
                s.handleRow( index, null, item, fields );
            }
            index++;
        }

        for ( Selector s : selectors ) {
            s.handleComplete( null );
        }

    }
public static void collectFrom ( List < Selector > selectors , Collection < ? > results , Map < String , FieldAccess > fields ) { for ( Selector s : selectors ) { s . handleStart ( results ) ; } int index = 0 ; for ( Object item : results ) { for ( Selector s : selectors ) { s . handleRow ( index , null , item , fields ) ; } index ++ ; } for ( Selector s : selectors ) { s . handleComplete ( null ) ; } }
Performs collections from the results.
@param selectors list of selectors
@param results results we are selecting from
@param fields fields
@return map of selected items per row
Performs collections from the results .