es.accenture.flink.Sources.KuduInputBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flink-kudu-connector Show documentation
Show all versions of flink-kudu-connector Show documentation
Connector between Apache Flink and Apache Kudu
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