@Override public void process(T input, Emitter<T> emitter) { if (accept(input)) { emitter.emit(input); } }
@Override public void process(Pair<T, Void> input, Emitter<T> emitter) { emitter.emit(input.first()); } }, collection.getPType());
@Override public void process(Pair<Tuple4<V1, V2, V3, V4>, Void> input, Emitter<Tuple4<V1, V2, V3, V4>> emitter) { emitter.emit(input.first()); } }, collection.getPType());
@Override public void process(TupleN input, Emitter<Pair<TupleN, Void>> emitter) { emitter.emit(Pair.of(input, (Void) null)); } }, type);
public void cleanup(Emitter<Pair<Integer, Pair<K, V>>> emitter) { for (Pair<K, V> p : values) { emitter.emit(Pair.of(0, p)); } } }
public void process(Pair<Integer, Pair<K, V>> input, Emitter<Pair<K, V>> emitter) { emitter.emit(input.second()); } }, base);
public void process(Pair<Boolean, Iterable<S>> input, Emitter<Pair<Boolean, S>> emitter) { S max = null; for (S v : input.second()) { if (max == null || ((Comparable<S>) max).compareTo(v) < 0) { max = v; } } emitter.emit(Pair.of(input.first(), max)); } })); }
public void process(Pair<Boolean, Iterable<S>> input, Emitter<Pair<Boolean, S>> emitter) { S min = null; for (S v : input.second()) { if (min == null || ((Comparable<S>) min).compareTo(v) > 0) { min = v; } } emitter.emit(Pair.of(input.first(), min)); } })); }
@Override public void process(T input, Emitter<Pair<T, Void>> emitter) { emitter.emit(Pair.of(input, (Void) null)); } }, type);
@Override public void process(Pair<Pair<U, V>, Void> input, Emitter<Pair<U, V>> emitter) { emitter.emit(input.first()); } }, collection.getPType());
@Override public void process(Tuple4<V1, V2, V3, V4> input, Emitter<Pair<Tuple4<V1, V2, V3, V4>, Void>> emitter) { emitter.emit(Pair.of(input, (Void) null)); } }, type);
@Override public void process(Pair<T, U> input, Emitter<U> emitter) { U second = input.second(); if (second != null) { emitter.emit(second); } } }
@Override public void process(Pair<K, V> input, Emitter<K> emitter) { emitter.emit(input.first()); } }, ptable.getKeyType());
public void process(Pair<Boolean, Iterable<S>> input, Emitter<Pair<Boolean, S>> emitter) { S min = null; for (S v : input.second()) { if (min == null || ((Comparable<S>) min).compareTo(v) > 0) { min = v; } } emitter.emit(Pair.of(input.first(), min)); } }));
@Override public void process(Pair<T, Pair<Collection<Boolean>, Collection<Boolean>>> input, Emitter<T> emitter) { Pair<Collection<Boolean>, Collection<Boolean>> groups = input.second(); if (!groups.first().isEmpty() && !groups.second().isEmpty()) { emitter.emit(input.first()); } } }, coll1.getPType());
@Override public void process(Pair<K, U> input, Emitter<Pair<K, Pair<U, V>>> emitter) { K key = input.first(); U value = input.second(); for (V joinValue : joinMap.get(key)) { Pair<U, V> valuePair = Pair.of(value, joinValue); emitter.emit(Pair.of(key, valuePair)); } }
@Override public void process(Pair<K, Iterable<V>> input, Emitter<Pair<K, V>> emitter) { for (V v : input.second()) { emitter.emit(Pair.of(input.first(), v)); } } }
@Override public void process(Pair<K, U> input, Emitter<Pair<Pair<K, Integer>, U>> emitter) { K key = input.first(); int numShards = shardingStrategy.getNumShards(key); if (numShards < 1) { throw new IllegalArgumentException("Num shards must be > 0, got " + numShards + " for " + key); } for (int i = 0; i < numShards; i++) { emitter.emit(Pair.of(Pair.of(key, i), input.second())); } }
@Override public void process( Pair<Pair<Integer, Integer>, Pair<Collection<U>, Collection<V>>> input, Emitter<Pair<U,V>> emitter) { for (U l: input.second().first()) { for (V r: input.second().second()) { emitter.emit(Pair.of(l, r)); } } } }, ctf.pairs(left.getPType(), right.getPType()));
@Override public void process(Pair<K, Iterable<V>> input, Emitter<Pair<K, V>> emitter) { aggregator.reset(); for (V v : input.second()) { aggregator.update(ptype == null ? v : ptype.getDetachedValue(v)); } for (V v : aggregator.results()) { emitter.emit(Pair.of(input.first(), v)); } } }