forked from D-Net/dnet-hadoop
refactoring
This commit is contained in:
parent
34172455d1
commit
9567c13bc3
|
@ -28,7 +28,7 @@ public class CommunityConfiguration implements Serializable {
|
||||||
private Map<String, SelectionConstraints> selectionConstraintsMap = new HashMap<>();
|
private Map<String, SelectionConstraints> selectionConstraintsMap = new HashMap<>();
|
||||||
// map eosc datasource -> communityid
|
// map eosc datasource -> communityid
|
||||||
private Map<String, List<Pair<String, SelectionConstraints>>> eoscDatasourceMap = new HashMap<>();
|
private Map<String, List<Pair<String, SelectionConstraints>>> eoscDatasourceMap = new HashMap<>();
|
||||||
//map communityid -> remove constraints
|
// map communityid -> remove constraints
|
||||||
private Map<String, SelectionConstraints> removeConstraintsMap = new HashMap<>();
|
private Map<String, SelectionConstraints> removeConstraintsMap = new HashMap<>();
|
||||||
|
|
||||||
public Map<String, List<Pair<String, SelectionConstraints>>> getEoscDatasourceMap() {
|
public Map<String, List<Pair<String, SelectionConstraints>>> getEoscDatasourceMap() {
|
||||||
|
|
|
@ -1527,17 +1527,18 @@ public class BulkTagJobTest {
|
||||||
.count());
|
.count());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void removeTest() throws Exception {
|
void removeTest() throws Exception {
|
||||||
final String pathMap = BulkTagJobTest.pathMap;
|
final String pathMap = BulkTagJobTest.pathMap;
|
||||||
SparkBulkTagJob
|
SparkBulkTagJob
|
||||||
.main(
|
.main(
|
||||||
new String[]{
|
new String[] {
|
||||||
"-isTest", Boolean.TRUE.toString(),
|
"-isTest", Boolean.TRUE.toString(),
|
||||||
"-isSparkSessionManaged", Boolean.FALSE.toString(),
|
"-isSparkSessionManaged", Boolean.FALSE.toString(),
|
||||||
"-sourcePath",
|
"-sourcePath",
|
||||||
getClass().getResource("/eu/dnetlib/dhp/bulktag/sample/dataset/update_datasourcewithconstraints").getPath(),
|
getClass()
|
||||||
|
.getResource("/eu/dnetlib/dhp/bulktag/sample/dataset/update_datasourcewithconstraints")
|
||||||
|
.getPath(),
|
||||||
"-taggingConf", taggingConf,
|
"-taggingConf", taggingConf,
|
||||||
"-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
|
"-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
|
||||||
"-outputPath", workingDir.toString() + "/dataset",
|
"-outputPath", workingDir.toString() + "/dataset",
|
||||||
|
@ -1566,4 +1567,4 @@ public class BulkTagJobTest {
|
||||||
idExplodeCommunity.show(false);
|
idExplodeCommunity.show(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue