[EOSC DUMP] removed not needed parameters
This commit is contained in:
parent
4e57cc22a1
commit
686f407bcd
|
@ -61,11 +61,6 @@ public class ExtendEoscResultWithOrganizationStep2 implements Serializable {
|
|||
final String outputPath = parser.get("outputPath");
|
||||
log.info("outputPath: {}", outputPath);
|
||||
|
||||
final String resultClassName = parser.get("resultTableName");
|
||||
log.info("resultTableName: {}", resultClassName);
|
||||
|
||||
Class<? extends Result> inputClazz = (Class<? extends Result>) Class.forName(resultClassName);
|
||||
|
||||
SparkConf conf = new SparkConf();
|
||||
|
||||
runWithSparkSession(
|
||||
|
@ -73,12 +68,12 @@ public class ExtendEoscResultWithOrganizationStep2 implements Serializable {
|
|||
isSparkSessionManaged,
|
||||
spark -> {
|
||||
Utils.removeOutputDir(spark, outputPath);
|
||||
addOrganizations(spark, inputPath, outputPath, resultPath, inputClazz);
|
||||
addOrganizations(spark, inputPath, outputPath, resultPath);
|
||||
});
|
||||
}
|
||||
|
||||
private static <R extends Result> void addOrganizations(SparkSession spark, String inputPath, String outputPath,
|
||||
String resultPath, Class<R> inputClazz) {
|
||||
private static void addOrganizations(SparkSession spark, String inputPath, String outputPath,
|
||||
String resultPath) {
|
||||
Dataset<EoscResult> results = Utils
|
||||
.readPath(spark, resultPath, EoscResult.class);
|
||||
|
||||
|
|
Loading…
Reference in New Issue