Package org.apache.heron.streamlet
Interface SerializableTransformer<I,O>
-
- All Superinterfaces:
Serializable
public interface SerializableTransformer<I,O> extends Serializable
All user supplied transformation functions have to be serializable. Thus all Streamlet transformation definitions take Serializable Functions as their input. We simply decorate java.util. function definitions with a Serializable tag to ensure that any supplied lambda functions automatically become serializable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanup()
void
setup(Context context)
void
transform(I i, Consumer<O> consumer)
-