All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.ugent.rml.functions.AbstractSingleRecordFunctionExecutor Maven / Gradle / Ivy

package be.ugent.rml.functions;

import be.ugent.idlab.knows.dataio.record.Record;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractSingleRecordFunctionExecutor implements SingleRecordFunctionExecutor {

    protected MultipleRecordsFunctionExecutor functionExecutor;

    public Object execute(Record record) throws Exception {
        Map recordsMap = new HashMap<>();
        recordsMap.put("_default", record);

        return this.functionExecutor.execute(recordsMap);
    }

    @Override
    public boolean needsEOFMarker() {
        return functionExecutor.needsEOFMarker();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy