/** * Works like addOutput(), but returns self for fluent style * * @param outputRecord * @return this */ public ReduceDriver<K1, V1, K2, V2> withOutput(Pair<K2, V2> outputRecord) { addOutput(outputRecord); return this; }
/** * Works like addOutput(), but returns self for fluent style * * @param key The key part of a (k, v) pair to add * @param val The val part of a (k, v) pair to add * @return this */ public ReduceDriver<K1, V1, K2, V2> withOutput(K2 key, V2 val) { addOutput(key, val); return this; }