IN1
- Type of the first input.IN2
- Type of the second input.OUT
- Output type.@Public public interface CoMapFunction<IN1,IN2,OUT> extends Function, Serializable
The same instance of the transformation function is used to transform both of the connected streams. That way, the stream transformations can share state.
Modifier and Type | Method and Description |
---|---|
OUT |
map1(IN1 value)
This method is called for each element in the first of the connected streams.
|
OUT |
map2(IN2 value)
This method is called for each element in the second of the connected streams.
|
OUT map1(IN1 value) throws Exception
value
- The stream elementException
- The function may throw exceptions which cause the streaming program
to fail and go into recovery.OUT map2(IN2 value) throws Exception
value
- The stream elementException
- The function may throw exceptions which cause the streaming program
to fail and go into recovery.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.