forked from D-Net/dnet-hadoop
introduced GraphFormat.DEFAULT, indicating a common value to be used across the workflows
This commit is contained in:
parent
1fcc28968e
commit
0da1d2c0c9
|
@ -54,7 +54,7 @@ public class MergeClaimsApplication {
|
||||||
final GraphFormat format = Optional
|
final GraphFormat format = Optional
|
||||||
.ofNullable(parser.get("format"))
|
.ofNullable(parser.get("format"))
|
||||||
.map(GraphFormat::valueOf)
|
.map(GraphFormat::valueOf)
|
||||||
.orElse(GraphFormat.JSON);
|
.orElse(GraphFormat.DEFAULT);
|
||||||
log.info("graphFormat: {}", format);
|
log.info("graphFormat: {}", format);
|
||||||
|
|
||||||
String graphTableClassName = parser.get("graphTableClassName");
|
String graphTableClassName = parser.get("graphTableClassName");
|
||||||
|
|
|
@ -3,6 +3,8 @@ package eu.dnetlib.dhp.common;
|
||||||
|
|
||||||
public enum GraphFormat {
|
public enum GraphFormat {
|
||||||
|
|
||||||
JSON, HIVE
|
JSON, HIVE;
|
||||||
|
|
||||||
|
public static GraphFormat DEFAULT = JSON;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue