I1
- type of values in the left setI2
- type of values in the right setOUT
- type of resulting valuesK
- type of key@Internal public final class TupleUnwrappingJoiner<I1,I2,OUT,K> extends WrappingFunction<FlatJoinFunction<I1,I2,OUT>> implements FlatJoinFunction<Tuple2<K,I1>,Tuple2<K,I2>,OUT>
wrappedFunction
Constructor and Description |
---|
TupleUnwrappingJoiner(FlatJoinFunction<I1,I2,OUT> wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
join(Tuple2<K,I1> value1,
Tuple2<K,I2> value2,
Collector<OUT> collector)
The join method, called once per joined pair of elements.
|
close, getWrappedFunction, open, setRuntimeContext
getIterationRuntimeContext, getRuntimeContext, open
public TupleUnwrappingJoiner(FlatJoinFunction<I1,I2,OUT> wrapped)
public void join(Tuple2<K,I1> value1, Tuple2<K,I2> value2, Collector<OUT> collector) throws Exception
FlatJoinFunction
join
in interface FlatJoinFunction<Tuple2<K,I1>,Tuple2<K,I2>,OUT>
value1
- The element from first input.value2
- The element from second input.collector
- The collector used to return zero, one, or more elements.Exception
- This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.