/** {@inheritDoc} */ @Override public R2 reduce(List<ComputeJobResult> res) { return rdc.reduce(); } }
/** {@inheritDoc} */ @Override public R2 reduce(List<ComputeJobResult> res) { return t.get3().reduce(); } }
/** * Concatenates strings using provided delimiter. * * @param c Input collection. * @param delim Delimiter (optional). * @return Concatenated string. */ public static String concat(Iterable<?> c, @Nullable String delim) { A.notNull(c, "c"); IgniteReducer<? super String, String> f = new StringConcatReducer(delim); for (Object x : c) if (!f.collect(x == null ? null : x.toString())) break; return f.reduce(); }
return rdc == null ? null : rdc.reduce();
@Override public void run() { c1.apply(msg); c2.apply(msg); c3.apply(); c4.reduce(); System.out.println("Test message: " + msg); } });
/** * Check completeness of the future. */ private void checkComplete() { if (initialized() && !isDone() && lsnrCalls == futuresCount()) { try { onDone(rdc != null ? rdc.reduce() : null); } catch (RuntimeException e) { logError(logger(), "Failed to execute compound future reducer: " + this, e); onDone(e); } catch (AssertionError e) { logError(logger(), "Failed to execute compound future reducer: " + this, e); onDone(e); throw e; } } }
onDone(rdc.reduce());
/** {@inheritDoc} */ @Override public R2 reduce(List<ComputeJobResult> res) { return rdc.reduce(); } }
/** {@inheritDoc} */ @Override public R2 reduce(List<ComputeJobResult> res) { return t.get3().reduce(); } }
/** * Concatenates strings using provided delimiter. * * @param c Input collection. * @param delim Delimiter (optional). * @return Concatenated string. */ public static String concat(Iterable<?> c, @Nullable String delim) { A.notNull(c, "c"); IgniteReducer<? super String, String> f = new StringConcatReducer(delim); for (Object x : c) if (!f.collect(x == null ? null : x.toString())) break; return f.reduce(); }
return rdc == null ? null : rdc.reduce();
/** * Check completeness of the future. */ private void checkComplete() { if (initialized() && !isDone() && lsnrCalls == futuresCount()) { try { onDone(rdc != null ? rdc.reduce() : null); } catch (RuntimeException e) { logError(logger(), "Failed to execute compound future reducer: " + this, e); onDone(e); } catch (AssertionError e) { logError(logger(), "Failed to execute compound future reducer: " + this, e); onDone(e); throw e; } } }
onDone(rdc.reduce());