/** * Performs a logical disjunction on the union of both input data sets. * * @param a boolean vector a * @param b boolean vector b * @return 1-element dataset containing the result of the conjunction */ public static DataSet<Boolean> union(DataSet<Boolean> a, DataSet<Boolean> b) { return a.union(b).reduce(new Or()); }
/** * Performs a logical disjunction on the union of both input data sets. * * @param a boolean vector a * @param b boolean vector b * @return 1-element dataset containing the result of the conjunction */ public static DataSet<Boolean> union(DataSet<Boolean> a, DataSet<Boolean> b) { return a.union(b).reduce(new Or()); }
/** * Performs a logical conjunction on the union of both input data sets. * * @param a boolean vector a * @param b boolean vector b * @return 1-element dataset containing the result of the conjunction */ public static DataSet<Boolean> union(DataSet<Boolean> a, DataSet<Boolean> b) { return a.union(b).reduce(new And()); }
/** * Performs a logical conjunction on the union of both input data sets. * * @param a boolean vector a * @param b boolean vector b * @return 1-element dataset containing the result of the conjunction */ public static DataSet<Boolean> union(DataSet<Boolean> a, DataSet<Boolean> b) { return a.union(b).reduce(new And()); }
@Override public DataSet<Boolean> isEmpty() { return getVertices() .map(new True<>()) .distinct() .union(getConfig().getExecutionEnvironment().fromElements(false)) .reduce(new Or()) .map(new Not()); }
/** * {@inheritDoc} */ @Override public DataSet<Boolean> isEmpty() { return getGraphHeads() .map(new True<>()) .distinct() .union(getConfig().getExecutionEnvironment().fromElements(false)) .reduce(new Or()) .map(new Not()); }
@Override public DataSet<Boolean> isEmpty() { return getGraphHeads() .map(new True<>()) .distinct() .union(getConfig().getExecutionEnvironment().fromElements(false)) .reduce(new Or()) .map(new Not()); }
/** * {@inheritDoc} */ @Override public DataSet<Boolean> isEmpty() { return getVertices() .map(new True<>()) .distinct() .union(getConfig().getExecutionEnvironment().fromElements(false)) .reduce(new Or()) .map(new Not()); }
.union(result.getGraphHead() .map(new IdAsIdSet<>())) .reduce(new IdSetCombiner()) .output(new LocalCollectionOutputFormat<>(resultGraphIds));