introduced GraphFormat.DEFAULT, indicating a common value to be used across the workflows

This commit is contained in:
Claudio Atzori 2020-08-04 12:25:31 +02:00
parent 1fcc28968e
commit 0da1d2c0c9
2 changed files with 4 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class MergeClaimsApplication {
final GraphFormat format = Optional
.ofNullable(parser.get("format"))
.map(GraphFormat::valueOf)
.orElse(GraphFormat.JSON);
.orElse(GraphFormat.DEFAULT);
log.info("graphFormat: {}", format);
String graphTableClassName = parser.get("graphTableClassName");

View File

@ -3,6 +3,8 @@ package eu.dnetlib.dhp.common;
public enum GraphFormat {
JSON, HIVE
JSON, HIVE;
public static GraphFormat DEFAULT = JSON;
}