forked from D-Net/dnet-hadoop
rule out records with NULL dataInfo, except for Relations
This commit is contained in:
parent
ccac6a7f75
commit
da1727f93f
|
@ -225,20 +225,20 @@ public class GraphCleaningFunctions extends CleaningFunctions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static <T extends Oaf> boolean filter(T value) {
|
public static <T extends Oaf> boolean filter(T value) {
|
||||||
if (Boolean.TRUE
|
if (!(value instanceof Relation) && (Boolean.TRUE
|
||||||
.equals(
|
.equals(
|
||||||
Optional
|
Optional
|
||||||
.ofNullable(value)
|
.ofNullable(value)
|
||||||
.map(
|
.map(
|
||||||
o -> Optional
|
o -> Optional
|
||||||
.ofNullable(o.getDataInfo())
|
.ofNullable(o.getDataInfo())
|
||||||
.map(
|
.map(
|
||||||
d -> Optional
|
d -> Optional
|
||||||
.ofNullable(d.getInvisible())
|
.ofNullable(d.getInvisible())
|
||||||
.orElse(true))
|
.orElse(true))
|
||||||
.orElse(false))
|
.orElse(false))
|
||||||
.orElse(true))) {
|
.orElse(true)))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value instanceof Datasource) {
|
if (value instanceof Datasource) {
|
||||||
|
|
Loading…
Reference in New Issue