// Path: ooso/src/main/java/fr/d2si/ooso/mapper/MapperAbstract.java
// public abstract class MapperAbstract implements Serializable {
//     private static final long serialVersionUID = 1L;
//     public abstract String map(BufferedReader objectBufferedReader);
// }
// 
// Path: ooso/src/main/java/fr/d2si/ooso/utils/Commons.java
// public final static String IGNORED_RETURN_VALUE = "";


import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.s3.AmazonS3;
import fr.d2si.ooso.mapper.MapperAbstract;
import fr.d2si.ooso.utils.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.List;
import static fr.d2si.ooso.utils.Commons.IGNORED_RETURN_VALUE;
package fr.d2si.ooso.mapper_wrapper;




public class MapperWrapper implements RequestHandler<MapperWrapperInfo, String> {
    private MapperAbstract mapperLogic;

    private MapperWrapperInfo mapperWrapperInfo;
    private JobInfo jobInfo;
    private String jobId;

    @Override
    public String handleRequest(MapperWrapperInfo mapperWrapperInfo, Context context) {
        try {
            this.mapperWrapperInfo = mapperWrapperInfo;

            this.jobInfo = this.mapperWrapperInfo.getJobInfo();

            this.jobId = this.jobInfo.getJobId();

            this.mapperLogic = instantiateMapperClass();

            List<ObjectInfoSimple> batch = mapperWrapperInfo.getBatch();

            processBatch(batch);

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
// Path: ooso/src/main/java/fr/d2si/ooso/mapper/MapperAbstract.java
// public abstract class MapperAbstract implements Serializable {
//     private static final long serialVersionUID = 1L;
//     public abstract String map(BufferedReader objectBufferedReader);
// }
// 
// Path: ooso/src/main/java/fr/d2si/ooso/utils/Commons.java
// public final static String IGNORED_RETURN_VALUE = "";


// Path: ooso/src/main/java/fr/d2si/ooso/mapper_wrapper/MapperWrapper.java
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.s3.AmazonS3;
import fr.d2si.ooso.mapper.MapperAbstract;
import fr.d2si.ooso.utils.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.List;
import static fr.d2si.ooso.utils.Commons.IGNORED_RETURN_VALUE;

package fr.d2si.ooso.mapper_wrapper;




public class MapperWrapper implements RequestHandler<MapperWrapperInfo, String> {
    private MapperAbstract mapperLogic;

    private MapperWrapperInfo mapperWrapperInfo;
    private JobInfo jobInfo;
    private String jobId;

    @Override
    public String handleRequest(MapperWrapperInfo mapperWrapperInfo, Context context) {
        try {
            this.mapperWrapperInfo = mapperWrapperInfo;

            this.jobInfo = this.mapperWrapperInfo.getJobInfo();

            this.jobId = this.jobInfo.getJobId();

            this.mapperLogic = instantiateMapperClass();

            List<ObjectInfoSimple> batch = mapperWrapperInfo.getBatch();

            processBatch(batch);

        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return IGNORED_RETURN_VALUE;