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

es.accenture.flink.Sources.KuduInputBuilder Maven / Gradle / Ivy

The newest version!
package es.accenture.flink.Sources;

import es.accenture.flink.Utils.RowSerializable;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;

public class KuduInputBuilder {
    public static ExecutionEnvironment env = null;

    public static DataSet build(String table_name, String master_add){
        KuduInputFormat prueba = new KuduInputFormat(table_name, master_add);

        env = ExecutionEnvironment.getExecutionEnvironment();

        TypeInformation typeInformation = TypeInformation.of(RowSerializable.class);
        DataSet source = env.createInput(prueba, typeInformation);
        return source;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy